note 13629 deleted from function.extract by jimw

From: Date: Sat, 08 Dec 2001 19:58:10 +0000
Subject: note 13629 deleted from function.extract by jimw
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-22155@lists.php.net to get a copy of this message
All you need to do to overwrite NULL fields from previous rows is use mysql_fetch_assoc instead of mysql_fetch_array : $result = mysql_query($some_query); while($row = mysql_fetch_assoc($result)){ extract($row); // do something useful } Ivan

« previous php.notes (#22155) next »