I'm new in PHP
how can retrive data from database using dropdown list
?
I have created the dropdown menu
<select name="con_st" >
<?php
$sql = "SELECT distinct con_stat FROM contst ";
$rs = mysql_query($sql);
while($row = mysql_fetch_array($rs))
{
echo "<option value=\"".$row['con_stat']."\">".$row['con_stat']."\n ";
}
?></select>
any help?