Jump to content

while()


ki

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.