Re: Generating readio buttons
| From: | David Jackson | Date: | Mon, 04 Nov 2002 05:09:49 +0000 |
| Subject: | Re: Generating readio buttons | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-22950@lists.php.net to get a copy of this message | ||
OK, this works but there has to be a pretty way?
David
------------- Works -------------------------
<html>
<head><title>Operation Sticky Bun</title></head
<body>
<h3 align="center">Operation Sticky Bun </h3>
<?php require('connect.php'); ?>
<?php
print '<form action="hello.php" method="post">';
$header = mysql_query ("SELECT * FROM chart
ORDER BY acct ");if ($row = mysql_fetch_array($header)) {
do {
print '<input type="radio" name="ledger_acct" value="';
print $row["acct"];print '">';
print $row["descript"];print '<br>';
} while($row = mysql_fetch_array($header));
} else {print "Sorry, no records were found!";}
print '</form>';
?>
</body>
</html>