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),
>
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
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
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
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' =>
hello everybody here is my array(s)
$us_census = array('NY' => array('New York' => 8008278),
'CA' => array('Los Angeles' => 3694820,
'San Diego' =>
1223400),
'IL
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
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 (
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 $row2['f
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
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
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);
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
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))){
$div_id=$
] 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
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:
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
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
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 adminis
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
> 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
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
--
PHP General Mailin
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 array
Hey all,
I've got this user authentication class that grabs a users profile from the database.
Anyhow, I need to also insert the groups that this user belongs to along with
permission settings. I'm having trouble figuring out how to store and read back the
data. I'm using PHP4. Here's the code
24 matches
Mail list logo