Re: [PHP] multi dimensional array question

2010-05-01 Thread Programming Guides
On Fri, Apr 30, 2010 at 7:33 PM, Nick Balestra n...@beyounic.com 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

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

Re: [PHP] multi dimensional array question

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

[PHP] multi dimensional array question

2010-04-30 Thread Nick Balestra
hello everybody here is my array(s) $us_census = array('NY' = array('New York' = 8008278), 'CA' = array('Los Angeles' = 3694820, 'San Diego' = 1223400), 'IL' =

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 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...

Re: [PHP] multi dimensional array

2005-05-06 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

[PHP] multi dimensional array

2005-05-05 Thread Angelo Zanetti
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 ( $row2 = mysql_fetch_array($result2) ) { //echo

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 ( $row2 =

[PHP] Multi-dimensional array help

2003-10-27 Thread Aaron Gould
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); $purchases[002][200304] = array('regular'=1, 'booked'=0);

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);

Re: [PHP] Multi-dimensional array help

2003-10-27 Thread David Otton
On 27 Oct 2003 13:20:48 -0500, you wrote: echo 'table border=1'.\n .'tr' .'thSKU/th' .'thJan/th' .'thFeb/th' .'thMar/th' .'thApr/th' .'thMay/th' .'thJun/th' .'thJul/th' .'thAug/th' .'thSep/th' .'thOct/th' .'thNob/th'

[PHP] multi-dimensional array

2002-05-09 Thread Steve Buehler
I am trying to learn some new things in the hopes that it would help me with my mysql/PHP programming. The following code gives me an error: Warning: Illegal offset type in z.php on line 25 . $result=mysql_query(SELECT * FROM division); while(($row=mysql_fetch_object($result))){

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

[PHP] multi-dimensional array

2001-12-05 Thread Jordan
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 unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list

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

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 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 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 accomplish this by first using

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][$string2]br /\n;

[PHP] Multi-dimensional array issue

2001-08-20 Thread Ken Hopkins
Hi from a recent PHP convert, Having a heck of a time declaring and accessing 2 dimensional info in an array. any input on where to start looking for the answer would be greatly appreciated. I want to have a base array of 5 elements. The first 4 elements are variables, and the fifth is an