Hi,
I have this drop-down menu, a list of authors. The name of the authors are in a database, I want to display it automatically, instead of writing the authors' names one by one.
The code I have written here does not work (which I thought should work), and I dont' know what else I can do:
With this code, the drop-down menu come up empty. It IS connected to the database, in case you were wondering ![Smile :) :)](data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)
Can anybody appoint where I screw up? Thanks!
Andre
I have this drop-down menu, a list of authors. The name of the authors are in a database, I want to display it automatically, instead of writing the authors' names one by one.
The code I have written here does not work (which I thought should work), and I dont' know what else I can do:
Code:
echo "<tr><td>Author</td><td><select name=author size=1>";
$result = mysql_query("SELECT Name FROM Authors");
while ($rw = mysql_fetch($result)) {
echo "<option>".$rw['Name'];
}
echo "</select></td></tr>";
Can anybody appoint where I screw up? Thanks!
Andre