I have this code I'm using to load a dropdown on my html form. What am I doing wrong? Should I be putting code in my HTML file for the dropdown box. I did that but this looks like it creates it but I'm not sure what I'm missing. I did a search and found several examples and none of them work.
In my PHP file...
$result = mysql_query("SELECT Makeid, Makename FROM tblMake");
echo '<select name="Make">';
while($row = mysql_fetch_assoc($result))
{
echo '<option value="'.$row['Makeid'].'">'.$row
['Makename'].'</option>';
}
echo '</select>';
Thanks in advance for any assistance.
In my PHP file...
$result = mysql_query("SELECT Makeid, Makename FROM tblMake");
echo '<select name="Make">';
while($row = mysql_fetch_assoc($result))
{
echo '<option value="'.$row['Makeid'].'">'.$row
['Makename'].'</option>';
}
echo '</select>';
Thanks in advance for any assistance.