View Single Post
  #2  
Old 08-17-2006, 03:15 PM
parker1 parker1 is offline
OSP Starters
 
Join Date: Jun 2006
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
parker1 is on a distinguished road
Talking

Try this code

<?php
echo '<select>';
$query = mysql_query("SELECT vehicle_make FROM vehicles WHERE vehicle_type='Ford'");
while ( $r = mysql_fetch_row($query) ){
echo '<option value="'. $r[0] .'">'. $r[0] ."</option>\n";
}
echo '</select>';
?>


Hope I was of little help -- This message may have been cut off and the rest will only be shown to members. To become a member, click here --
Reply With Quote
  Webmaster Forums - View Single Post - Autofilling dropdown box
View Single Post
  #2  
Old 08-17-2006, 03:15 PM
parker1 parker1 is offline
OSP Starters
 
Join Date: Jun 2006
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
parker1 is on a distinguished road
Talking

Try this code

<?php
echo '<select>';
$query = mysql_query("SELECT vehicle_make FROM vehicles WHERE vehicle_type='Ford'");
while ( $r = mysql_fetch_row($query) ){
echo '<option value="'. $r[0] .'">'. $r[0] ."</option>\n";
}
echo '</select>';
?>


Hope I was of little help -- This message may have been cut off and the rest will only be shown to members. To become a member, click here --
Reply With Quote