Re: Creating an Array from a Recordset

From: Date: Thu, 06 Feb 2003 15:41:25 +0000
Subject: Re: Creating an Array from a Recordset
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-134631@lists.php.net to get a copy of this message
On Thursday 06 February 2003 22:34, Vernon wrote: > That gives me something that looks like this: > Array ( [0] => 34 [1] => 31 [2] => 16 [3] => 16 [4] => 6 [5] => 4 [6] => 4 > [7] => 3 [8] => 2 [9] => 2 [10] => 2 [11] => 2 [12] => 2 [13] => 2 [14] > => > 2 [15] => 2 [16] => 1 [17] => 1 [18] => 1 [19] => 1 [20] => 1 [21] => 1 > [22] => 1 [23] => 1 [24] => 1 [25] => 1 [26] => 1 [27] => 1 [28] => 1 [29] > => 1 [30] => 1 [31] => 1 [32] => 1 [33] => 1 [34] => 1 ) Exactly. That's what you asked for! > when what I need is set the variable $datay to be something like this > > $datay=array(12,8,19,3,10,5,55,88,3); Try this: $datay=array(12,8,19,3,10,5,55,88,3); print_r($datay); -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * ------------------------------------------ Search the list archives before you post http://marc.theaimsgroup.com/?l=php-general ------------------------------------------ /* People who take cat naps don't usually sleep in a cat's cradle. */

« previous php.general (#134631) next »