So If I needed say 10 session variables all based on field values in the database I'd have to execute 10 separate queries and assign each variable separately...?
If that's the case then fine - as I only need do it once I know, but it does seem a rather long winded way of doing things. -- ----------------------------- Michael Mason Arras People www.arraspeople.co.uk ----------------------------- "Jason Barnett" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Harlequin wrote: > > > OK, so here's my conundrum... > > > > After verifying the user and pulling all fields from the record I declare > > two variables (just testing here): > > $_SESSION['UserID'] = UserID; > > now contains the string / constant UserID > > > $_SESSION['FurtherComments'] = FurtherComments; > > now contains the string / constant FurtherComments > > > > > on the next page I start a session, everything OK. > > > > I echo the UserID variable - fine. > > > > But the FurtherComments variable simply echoes "FurtherComments" even though > > there's a database field called "FurtherComments". > > You'd need to do the actual call to your database and select the FurtherComments > field, then assign the result of that query to $_SESSION['FurtherComments']. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php