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? Quote Link to comment 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. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.