OK, this works but there has to be a pretty way?


------------- Works -------------------------

<head><title>Operation Sticky Bun</title></head
<h3 align="center">Operation Sticky Bun </h3>
<?php require('connect.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>';

PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to