I am trying to populate a Drop down box from results of a mySQL Query, in Php. I\'ve looked up examples online and I\'ve tried them on my webpage, but for some reason they j
Below is the code for drop down using MySql and PHP:
MySql
PHP
$sql="Select PcID from PC" $q=mysql_query($sql) echo ""; echo ""; while($row = mysql_fetch_array($q)) { echo "".$row['PcID'].""; } echo ""; ?>