>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 '
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" <[EMAIL PROTECTED]> wrote in message
B733065B9A56D61194840090274F42CE01AC69@INBLREXCH00">news:B733065B9A56D61194840090274F42CE01AC69@INBLREXCH00...
> Hello,
>
> I want to a
Try pushing the variables into an array before sending to the session.
I never have problems with arrays in sessions.
"Sachin Keshavan" <[EMAIL PROTECTED]> wrote in message
B733065B9A56D61194840090274F42CE01AC69@INBLREXCH00">news:B733065B9A56D61194840090274F42CE01AC69@INBLREXCH00...
> Hello,
>
>
3 matches
Mail list logo