note 1115 deleted from mysql_fetch_array by danbeck

From: Date: Thu, 07 Sep 2000 15:32:48 +0000
Subject: note 1115 deleted from mysql_fetch_array by danbeck
Groups: php.notes 
Request: Send a blank email to php-notes+get-4372@lists.php.net to get a copy of this message
if you want to cycle through the keys of a row from mysql_fetch_array, be sure to do two next($row)'s each time. example: <PRE> for (reset($row); $key = key($row); next($row)) { do whatever.. next($row); } </PRE> this is because the numeric indices are mixed in with the keys. have fun!

« previous php.notes (#4372) next »