note 32471 deleted from function.sizeof by alindeman
| From: | alindeman@php.net | Date: | Wed, 28 May 2003 18:02:40 +0000 |
| Subject: | note 32471 deleted from function.sizeof by alindeman | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-49191@lists.php.net to get a copy of this message | ||
Note Submitter: MightyE
----
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.