revit
BANNED
- Apr 24, 2009
- 266
- 372
Sorry, I wasn't quite sure where to post this to request everyones help.
I am trying to insert a sql callout in an html form.
This is the script:
It's intended to go inside a dropdown box but I'm having trouble getting it to grab the MySQl information.
Anyone have any suggestions?
I am trying to insert a sql callout in an html form.
This is the script:
HTML:
<select name="carrier">
<option value="" selected>-- Carriers --</option>
<?
$sql = "SELECT * FROM carriers";
$result = mysql_query($sql);
while($row = mysql_fetch_array($result)) {
?>
<option value="<? echo $row["id"]; ?>">
<? echo $row["name"]; ?></option>
<?
}
?>
</select>
It's intended to go inside a dropdown box but I'm having trouble getting it to grab the MySQl information.
Anyone have any suggestions?