Posted by bill on 01/05/07 13:31
Toby Inkster wrote: > bill wrote: > >> Shouldn't there be a bracket after the while statement ? > > Not needed. .... <?php $vals = array(); while ($temp = fetch_row_from_db()) $vals[$temp[0]] = $temp; var_dump($vals); ?> Ah, so the var_dump ($vals); is executed just once ? bill
[Back to original message]
Copyright © 2005-2006 Powered by Custom PHP Programming