RE: [PHP] Storing values in Session

From: Date: Wed, 10 Jul 2002 07:01:30 +0000
Subject: RE: [PHP] Storing values in Session
Groups: php.general 
Request: Send a blank email to php-general+get-106686@lists.php.net to get a copy of this message
It should be: $BOOKS = $BOOKS.",".$bookid; Rudolf Visagie Principal Software Developer Digital Healthcare Solutions <mailto:rudolf@dhsolutions.co.za> Tel: 011 2655478 Cell: 082 895 1598 -----Original Message----- From: Sachin Keshavan [mailto:Sachin.Keshavan@symphserv.com] Sent: Wednesday, July 10, 2002 8:03 AM To: php-general@lists.php.net Subject: [PHP] Storing values in Session 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. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

« previous php.general (#106686) next »