Display table fields in a dropdown
Posted: Wed Jul 26, 2006 9:58 am
Hi all
how would i make it so that it will display all the fields from the table and put them in a dropdown what is wrong with this
thanks reece
how would i make it so that it will display all the fields from the table and put them in a dropdown what is wrong with this
Code: Select all
$result = mysql_query("select * from $url limit 100");
if ($result) {
?>
Search
<form action="" method="post">
<input name="search" type="text" />
<select name="field"><option><? while (mysql_fetch_field($result)) ?></option></select>