ki Posted March 8, 2007 Share Posted March 8, 2007 My code: <select onChange="checkDest(this, 'trucks');" name="trucks"> <? $getSKATECOMPANYS = mysql_query("SELECT * FROM `skateboard_company`"); while($getSKATECOMPANY = mysql_fetch_row($getSKATECOMPANYS)) { echo "<option value=\"".$getSKATECOMPANY->company."\">".$getSKATECOMPANY->company."</option>"; } ?> <option value="-1">Other</option> </select> isnt working for some reason? anyone have any ideas on what might be the problem? Link to comment https://forums.phpfreaks.com/topic/41727-while/ Share on other sites More sharing options...
effigy Posted March 8, 2007 Share Posted March 8, 2007 Always verify that your queries succeed. mysql_fetch_row, as is stated in the docs, returns a numerical array. Link to comment https://forums.phpfreaks.com/topic/41727-while/#findComment-202331 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.