Re: multi dimensional arraySOLVED

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



this is quite weird but apparently on the one server if you user $user
as a variable name thats what causes the problem.
I simply renamed my variable to something else and it worked, I find it
strange that it worked on 1 server and not the other, is it possible
that the different apache versions are responsible for this situation??

TIA


Angelo Zanetti 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 = 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
>
>  
>

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux