php-general | 2005051
Date: 05/05/05
- Next message: Ryan Faricy: "[PHP] Re: php5-mysqli"
- Previous message: Ryan Faricy: "[PHP] Re: How do you declare Vars in PHP? -I know it's not necessary, but I still want to know"
- Next in thread: Angelo Zanetti: "Re: [PHP] multi dimensional arraySOLVED"
- Reply: Angelo Zanetti: "Re: [PHP] multi dimensional arraySOLVED"
- Reply: bala chandar: "Re: [PHP] multi dimensional array"
- Reply: Richard Lynch: "Re: [PHP] multi dimensional array"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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['firstname'];
$user[$i]['firstname']=$row2['firstname'];
$user[$i]['lastname']=$row2['lastname'];
$user[$i]['userid']=$row2['userid'];
$i++;
}
the loop is definitely getting the values from the database as i can see
them when I echo out the recordset variables ($row[....)
I'm thinking that there is some sort of configuration issue here with
the other server. Its running Apache 1 and the server that works is
running Apache 2.
I've tried single and double quotes and neither work, does anybody else
know what can be causing this not to assign the value to the
multidimensional array?
AFAIK both servers have register_globals OFF
TIA
--Angelo Zanetti Z Logic www.zlogic.co.za [c] +27 72 441 3355 [t] +27 21 469 1052
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
- Next message: Ryan Faricy: "[PHP] Re: php5-mysqli"
- Previous message: Ryan Faricy: "[PHP] Re: How do you declare Vars in PHP? -I know it's not necessary, but I still want to know"
- Next in thread: Angelo Zanetti: "Re: [PHP] multi dimensional arraySOLVED"
- Reply: Angelo Zanetti: "Re: [PHP] multi dimensional arraySOLVED"
- Reply: bala chandar: "Re: [PHP] multi dimensional array"
- Reply: Richard Lynch: "Re: [PHP] multi dimensional array"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

