Jump to content

Drop down menu


june_c21

Recommended Posts

When you have created you form in dreamweaver of frontpage in use the drop down menu in the form option  in there you insert your code make sure the table tools exist in the database.

 

<select name="tools" id="tools">

                                                    <?php

$sql = "SELECT * FROM tools;";

$res = mysql_query($sql);

while($row= mysql_fetch_assoc($res)) {

echo "<option value='" . $row['id'] . "'";

echo ">" . $row['name'] . "</option>";

}

?>

                                                    </select>

 

Good luck

Link to comment
https://forums.phpfreaks.com/topic/82640-drop-down-menu/#findComment-420313
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.