Re: [PHP-DB] more values in a array

2003-01-04 Thread Jason Wong
On Sunday 05 January 2003 11:18, Martin Allan Jensen wrote:
> Hi everybody,
>
> I'm about to transport data from a function to a page that calls it, but
> i'm HAD to make the data's in one or more array's.
>
> How can i possibly put all these datas in an array ?? And is it possible ??
>
> idvalueyeartype
> --+---+-+-+
> 1  1002002 P
> 2  2002002 A
> 3  3002002 P
> 4  4002002 A

$myarray[1][value] = 100;
$myarray[1][year] = 2002;
$myarray[1][type] = 'P';
etc. OR

$myarray[1] = array('value' => 100, 'year' => 2002, 'type' => 'P');
etc.


-- 
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *


/*
Life is like a tin of sardines.  We're, all of us, looking for the key.
-- Beyond the Fringe
*/


-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP-DB] more values in a array

2003-01-04 Thread Martin Allan Jensen
Hi everybody,

I'm about to transport data from a function to a page that calls it, but i'm HAD to 
make the data's in one or more array's.

How can i possibly put all these datas in an array ?? And is it possible ??

idvalueyeartype
--+---+-+-+
1  1002002 P
2  2002002 A
3  3002002 P
4  4002002 A

I hope you understand my bad english and that you can help me...

Thanks a lot just for reading this!

Regards,
Martin Allan Jensen


--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php