Re: [PHP] multi dimensional array question

2010-05-01 Thread Richard Quadling
On 30 April 2010 23:57, Nick Balestra wrote: > us_census = array('NY' => array('New York' => 8008278), >                                   'CA' => array('Los Angeles' => 3694820, >                                                                 'San Diego' > => 1223400), >                        

Re: [PHP] multi dimensional array question

2010-05-01 Thread Nick Balestra
Thanks! I'll agree with you abotu ur points, i just started php few days ago..so i am in the first phase of learnign it...and this list is so gr8! thanks evrybody cheers, Nick On May 1, 2010, at 6:11 PM, Programming Guides wrote: > On Fri, Apr 30, 2010 at 7:33 PM, Nick Balestra wrote: > thank

Re: [PHP] multi dimensional array question

2010-05-01 Thread Programming Guides
On Fri, Apr 30, 2010 at 7:33 PM, Nick Balestra wrote: > thanks Piero! > > i was trying to solve an excercise on "learning php5" (O'reilyl) book. > > I am happy abotut his solution with the array_sum funtion you suggested, > and my multidimensional array make much more sense to mee then they > sug

Re: [PHP] multi dimensional array question

2010-04-30 Thread Nick Balestra
thanks Piero! i was trying to solve an excercise on "learning php5" (O'reilyl) book. I am happy abotut his solution with the array_sum funtion you suggested, and my multidimensional array make much more sense to mee then they suggested solution that also much more line of code comapred... loo

Re: [PHP] multi dimensional array question

2010-04-30 Thread Piero Steinger
Am 01.05.2010 00:57, schrieb Nick Balestra: > hello everybody here is my array(s) > > > $us_census = array('NY' => array('New York' => 8008278), > 'CA' => array('Los Angeles' => 3694820, >'San Diego' =>

Re: [PHP] multi dimensional array

2005-05-05 Thread Richard Lynch
On Thu, May 5, 2005 2:08 am, Angelo Zanetti said: [sorry for the double-post...] > the other server. Its running Apache 1 and the server that works is > running Apache 2. Are you sure it's not the broken server running Apache 2?... And possibly PHP 5? And MySQL 4.1? Which means you need mysqli

Re: [PHP] multi dimensional array

2005-05-05 Thread bala chandar
hi, On 5/5/05, Angelo Zanetti <[EMAIL PROTECTED]> wrote: > Hi guys, > > I have a problem where I use a multi dimensional array on one server and > now have moved it to another server and it just doesnt work: > > $result2 = $userdb->listUsers($clubID); > $i=0; > > while (

Re: [PHP] Multi-dimensional array help

2003-10-27 Thread David Otton
On 27 Oct 2003 13:20:48 -0500, you wrote: >echo ''."\n" >.'' >.'SKU' >.'Jan' >.'Feb' >.'Mar' >.'Apr' >.'May' >.'Jun' >.'Jul' >.'Aug' >.'Sep' >.'Oct' >.'Nob' >.'Dec' >.''."\n"; for ($i = 1; $i <= 12; $i++) { e

Re: [PHP] Multi-dimensional array help

2003-10-27 Thread Robert Cummings
On Mon, 2003-10-27 at 12:44, Aaron Gould wrote: > This array problem has been stumping my brain for a little while now... > here's a sample of my data: > > $purchases[001][200304] = array('regular'=>3, 'booked'=>4); > $purchases[002][200303] = array('regular'=>5, 'booked'=>1); > $pu

Re: [PHP] multi-dimensional array

2002-05-09 Thread Miguel Cruz
Line 25 looks like this: $division[$div_id][$array]=array(); The first subscript to division is $div_id, which is fine. The second one is $array, which is an array. That doesn't make any sense. Array keys have to be strings or numbers. You'd have to create a separate array at each subscrip

RE: [PHP] multi-dimensional array

2001-12-05 Thread Martin Towell
] multi-dimensional array At 03:41 PM 12/5/2001 -0500, Jordan wrote: >Is there any way to pass a multi-dimenstional through a url. something like >/cart.exe?item[1][1]=3 > >just curious. > >-Jordan I haven't personally done this myself, but theoretically you could accompl

Re: [PHP] multi-dimensional array

2001-12-05 Thread Michael Sims
At 03:41 PM 12/5/2001 -0500, Jordan wrote: >Is there any way to pass a multi-dimenstional through a url. something like >/cart.exe?item[1][1]=3 > >just curious. > >-Jordan I haven't personally done this myself, but theoretically you could accomplish this by first using the serialize function:

Re: [PHP] multi-dimensional array

2001-12-05 Thread Mike Eheler
Sorry, I sent that too soon.. here's my test results: http://localhost/test.php?var[test][5][]=test [HTTP_GET_VARS] => Array ( [var] => Array ( [test] => Array ( [5] => Array

Re: [PHP] multi-dimensional array

2001-12-05 Thread Mike Eheler
Should work. Why not give it a try, and let the good people of this list know? Mike Jordan wrote: >Is there any way to pass a multi-dimenstional through a url. something like >/cart.exe?item[1][1]=3 > >just curious. > >-Jordan > > > -- PHP General Mailing List (http://www.php.net/) To uns

Re: [PHP] multi-dimensional array won't echo

2001-08-25 Thread bill
Not only a good answer, but the best explanation. thanks, bill hollett Rasmus Lerdorf wrote: > > The first echo statement doesn't work, the second does. Anybody know > > why? > > > > $string1=15; > > $string2=27; > > $myarray[$string1][$string2]="syncopated"; > > echo "$myarray[$string1][$str

Re: [PHP] multi-dimensional array won't echo

2001-08-25 Thread Rasmus Lerdorf
> The first echo statement doesn't work, the second does. Anybody know > why? > > $string1=15; > $string2=27; > $myarray[$string1][$string2]="syncopated"; > echo "$myarray[$string1][$string2]\n"; //displays Array[27] > echo $myarray[$string1][$string2] . "\n"; //displays syncopated Complex va