The while statement is only executing correctly for the first run through
the foreach loop. Why?
Thanks,
loop
foreach($desc as $key=>$value) {
printf("Show %s Description <select name='show%sDesc'>", $key, $key);
echo "<option value = ''></option>";
while($row = mysql_fetch_row($show_names)) {
printf("<option value='%s'>%s</option>", $row[0], $row[1]);
}
echo "</select><br>";
}
_________________________________________________________________
MSN 8 with e-mail virus protection service: 2 months FREE*
http://join.msn.com/?page=features/virus
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
- Re: [PHP] help - WHILE in FOREACH James Brennan
- Re: [PHP] help - WHILE in FOREACH Matt
- Re: [PHP] help - WHILE in FOREACH Rick Emery
- Re: [PHP] help - WHILE in FOREACH Chris Wesley
- Re: [PHP] help - WHILE in FOREACH James Brennan
- Re: [PHP] help - WHILE in FOREACH James Brennan