Re: Storing values in Session

From: Date: Wed, 10 Jul 2002 07:00:04 +0000
Subject: Re: Storing values in Session
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-106684@lists.php.net to get a copy of this message
Oh an for the if statement. My PHP gets confused, maybe it's just me but give it a try if(empty($BOOKS)) "Sachin Keshavan" <Sachin.Keshavan@symphserv.com> wrote in message news:B733065B9A56D61194840090274F42CE01AC69@INBLREXCH00... > Hello, > > I want to add a set of values to the session variable $BOOKS. This is the > code which I used. > > if($BOOKS=="") > { > #this seems to be the first book which the user has selected > $BOOKS = $bookid; #this param comes from the URL > } > else > { > $BOOKS = $BOOKS+","+$bookid; > } > > Here the 'if..' part gets executed, and because of that I cannot add details > of another book. I have initialised the session and added the registered the > value "BOOKS" in the previous page. > > Thanks in advance, > Sachin.

« previous php.general (#106684) next »