I'm new to this php thing and can't work out where I am going wrong:
Code: Select all
//loop and populate select box
while($row = mysql_fetch_array($result))
{
echo "<option value=\"".$row['gamesId']."\" ";
if($row['gamesID']== $gamesystemid){
echo "selected=\"selected\" ";
}
echo ">".$row['gamesNames']."\n ";
}
?>