note 32471 added to function.sizeof

From: Date: Wed, 28 May 2003 17:44:17 +0000
Subject: note 32471 added to function.sizeof
Groups: php.notes 
Request: Send a blank email to php-notes+get-49187@lists.php.net to get a copy of this message
Ricardo, use mysql_fetch_assoc(), mysql_fetch_array() returns an associative array of columname=>value pairs as well as columnnumber=>value pairs. so you'd get $row[0]=>value1 $row[cp1]=>value1 $row[1]=>value2 $row[cp2]=>value2 $row[2]=>value3 $row[cp3]=>value3 $row[3]=>value4 $row[cp4]=>value4 as your array. ---- Manual Page -- http://www.php.net/manual/en/function.sizeof.php Edit Note -- http://master.php.net/manage/user-notes.php?action=edit+32471 Delete Note -- http://master.php.net/manage/user-notes.php?action=delete+32471&report=yes Reject Note -- http://master.php.net/manage/user-notes.php?action=reject+32471&report=yes

« previous php.notes (#49187) next »