From: Ian Jackson Date: Wed, 12 Sep 2012 17:32:20 +0000 (+0100) Subject: wip, before radiobuttons X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?p=nj-awaymsg.git;a=commitdiff_plain;h=ad848a3d5e86602f7a568e6a0b034b21a177171a wip, before radiobuttons --- diff --git a/mason/edit b/mason/edit index 8dddaa2..c8ee036 100755 --- a/mason/edit +++ b/mason/edit @@ -37,6 +37,9 @@ if ($ARGS{'create'}) { $tx = $sth->fetchrow_hashref();# } +my $usedq = $dbh->prepare("SELECT * FROM addresses ORDER BY emailaddr"); +$usedq->execute(); + if (!$tx) { die "no such text $textid"; } @@ -46,6 +49,14 @@ if (!$tx) { die "no such text $textid"; } +
+% while (my $row = $usedq->fetchrow_hashref()) { + + +% } +

Use for <% $row->{'emailaddr'} |h %> +>