I am trying to populate a drop down menu with php/mysql. Wouldn’t this be the typical code for something like that? Thanks for any reviews and suggestions for code that actually works. I can’t get this one to work at all.
[php]<?php
$query="SELECT whatever from tablename";
$result=mysql_query($query);
while($row=mysql_fetch_array($result,MYSQL_ASSOC))
$whateverid = $row['whateverid'];
$whatevername = $row['whatevername'];
{
echo ‘’ . $row[‘whatevername’]. ‘’;
}
echo ‘’;
?>[/php]