Re: [PHP] Pushing Vars into $_SESSION

2006-04-20 Thread Barry
Chris Grigor wrote: The method behind the madness here, is that I am only pulling the data once from the db throughout the whole session. This means that all the user info is available on every page they visit. I can also then identify on each page that loads if a user has signed in and a ses

Re: [PHP] Pushing Vars into $_SESSION

2006-04-20 Thread Chris Grigor
Richard Lynch wrote: On Wed, April 19, 2006 1:36 am, Chris Grigor wrote: Richard Lynch wrote: On Tue, April 18, 2006 10:05 am, Chris Grigor wrote: Was wondering if there is an easier way to get returned variables into the $_SESSION rather than going through each one??

Re: [PHP] Pushing Vars into $_SESSION

2006-04-19 Thread Richard Lynch
On Wed, April 19, 2006 1:36 am, Chris Grigor wrote: > Richard Lynch wrote: > >>On Tue, April 18, 2006 10:05 am, Chris Grigor wrote: >>>Was wondering if there is an easier way to get returned variables >>> into >>>the $_SESSION rather than going through each one?? >>foreach($line as $key => $value)

Re: [PHP] Pushing Vars into $_SESSION

2006-04-18 Thread Richard Lynch
On Tue, April 18, 2006 10:05 am, Chris Grigor wrote: > Was wondering if there is an easier way to get returned variables into > the $_SESSION rather than going through each one?? > > eg > > $link_id = mysql_connect($dbhost, $dbuser, $dbpass) > or die("Connection to $dbhost failed on

Re: [PHP] Pushing Vars into $_SESSION

2006-04-18 Thread Paul Waring
On 18/04/06, Chris Grigor <[EMAIL PROTECTED]> wrote: > Was wondering if there is an easier way to get returned variables into > the $_SESSION rather than going through each one?? First of all, why are you using mysql_fetch_object and then passing in MYSQL_ASSOC? You should be using $line = mysql_f