I have and if statement in my </head>
Code: Select all
if ($_GET['type'] == "resto")
{
$list1 = $row_List['food'];
}anyway....
then i have a dropdown menu with this code
Code: Select all
<form name="" method="post" action=""></p>
<select name="list1" class="textfield">
<?php
do {
?>
<option value="<?php echo $list1?>"><?php echo $list1?></option>
<?php
} while ($row_List = mysql_fetch_assoc($List));
$rows = mysql_num_rows($List);
if($rows > 0) {
mysql_data_seek($List, 0);
$row_List = mysql_fetch_assoc($List);
}
?>
</select>
</form>any ideas wheres the problem with my code?
thank you in advance