Re: Help w/Array Roadblock ( mental )
| From: | Robert Cummings | Date: | Sat, 13 Mar 2004 10:11:18 +0000 |
| Subject: | Re: Help w/Array Roadblock ( mental ) | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-180322@lists.php.net to get a copy of this message | ||
On Sat, 2004-03-13 at 04:35, Joey wrote:
> As you can see by the below code, I have tried many ways to store DB values
> to a multi-dimensional array and then print them out.
> The problem is I am missing something somewhere.
> As you can see at the bottom of the code I created an array and printed the
> entire content of the array, but getting it from DB to array and dumping it
> has me lost some where.
>
> Any help appreciated!!!!
To help understand if your array building is wrong, or your attempt to
output the array. Try using
print_r( $array );
To output the array to see it's structure. If you are viewing this in
your browser then it is better to do the following:
echo '<pre>'."\n";
print_r( $array );
echo '</pre>'."\n";
Cheers,
Rob.
--
.------------------------------------------------------------.
| InterJinn Application Framework - http://www.interjinn.com
|
:------------------------------------------------------------:
| An application and templating framework for PHP. Boasting |
| a powerful, scalable system for accessing system services |
| such as forms, properties, sessions, and caches. InterJinn |
| also provides an extremely flexible architecture for |
| creating re-usable components quickly and easily. |
`------------------------------------------------------------'