"$_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($rec = mysql_fetch_array($query)) { $_SESSION['guestbook'][] = $rec; //do something else with $rec? }
-- paperCrane <Justin Patrin>
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php