I keep getting problems with this. What i want to do is populate my dropdown list with the names of the columns in one of my database tables. Whatever i try to do i keep somehow filling it in with like 5 Array's or 5 Object's. Code is below and any help is greatly appreciated.
$query33 = "SHOW COLUMNS FROM $January";
$result33 = mysql_query($qu ery33);
<select name='os1'>
<?php
if($result33){
while($row = mysql_fetch_arr ay($result33)){
echo "<option value='$row'>". $row."</option>";
}
}
?>
</select>
$query33 = "SHOW COLUMNS FROM $January";
$result33 = mysql_query($qu ery33);
<select name='os1'>
<?php
if($result33){
while($row = mysql_fetch_arr ay($result33)){
echo "<option value='$row'>". $row."</option>";
}
}
?>
</select>
Comment