Hi guys,
Oy! this is a scarey one for me. I hope someone can help me out here.
I need to be able to have listed in a select box data from a MySQL Query.
And it works perfectly on the first time. But I'm guessing that it has something to do with the mysql_fetch_array function. I am guessing that I only can use this once in for loop. Here's what I tried to do.
All help is appreciated. Thanks,
Kevin
CODE
<?php
$count = 15;
for ($i = 0; $count > $i; $i++){
$num = $i;
echo "<select name='listing$num'>";
echo "<option value='' SELECTED>No Label</option>";
while ($InfoNum > $c){
$Info = mysql_fetch_array($Result);
echo "<option value='$Info[listFileId]'>$Info[listFileId] || $Info[lastName]</option>";
$c++;
}
echo "</select><br>";
}
?>
The first select box works no problem but everyone after that doesn't.
But it does display the other select boxes, it's just that all they show is the "No Label" option.