Jump to content

Question about select menu


hno

Recommended Posts

You mean you want to grab the row from the database that corresponds to the option they selected? If so, you can do something like this:

 

$id = $_POST['name']; //whatever the name of your combobox in the form is.
$result = mysql_query('SELECT * FROM `table` WHERE id="' . $id . '"');
$row = mysql_fetch_assoc($result);

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.