hi
i have got a simple table in my database like this:
from|to
bangalore | delhi
chennai | mumbai
i am using two drop down list to display this data. here is my code:
<select name="From">
<?php while($row = mysql_fetch_row($result))
{ ?>
<option value="<?php echo $row[0];?>"><?php echo $row[0];?></option>
<?php }?>
</select>
<select style="width: 150px;" name="To">
<?php while($row = mysql_fetch_row($result))
{ ?>
<option value="<?php echo $row[1];?>"><?php echo $row[1];?></option>
<?php }?>
the first drop down list is working fine but the second isn't working.
thanks in advance..