note 31043 added to function.mysql-fetch-row
| From: | michael at rack1 dot php dot net | Date: | Tue, 08 Apr 2003 05:09:15 +0000 |
| Subject: | note 31043 added to function.mysql-fetch-row | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-46336@lists.php.net to get a copy of this message | ||
to print an array, simply use print_r(array name)
like this:
$myrow = mysql_fetch_row($result);
echo "<pre>";
print_r($myrow);
echo "</pre>";
this will output the array in a readable form, with the index, too. Don't forget the
'pre' tags or the output will be on a single line.
--
http://www.php.net/manual/en/function.mysql-fetch-row.php
http://master.php.net/manage/user-notes.php?action=edit+31043
http://master.php.net/manage/user-notes.php?action=delete+31043
http://master.php.net/manage/user-notes.php?action=reject+31043