[PHP] Re: asigning an array of variables to $_SESSION

2004-04-02 Thread Justin Patrin
Andy B wrote: "$_SESSION['guesbook'] = $arr;" is it safe to say that i can do this: while($_SESSION['guestbook']=mysql_fetch_array($query)) to get the same thing as $_SESSION[guestbook]=$R?? No, that will se $_SESSION['guestbook'] to one thing after another, not an array. I would suggest: while

[PHP] Re: asigning an array of variables to $_SESSION

2004-04-02 Thread Andy B
"$_SESSION['guesbook'] = $arr;" is it safe to say that i can do this: while($_SESSION['guestbook']=mysql_fetch_array($query)) to get the same thing as $_SESSION[guestbook]=$R?? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: asigning an array of variables to $_SESSION

2004-04-02 Thread Justin Patrin
Andy B wrote: hi... i need to assign an array to $_SESSION. the reason for this is that i have a page that gets data from 2 different tables from the same mysql db all at the same time... there is guestbook (for the guestbook) and events (for the events section). i guess i would need to know 2