RE: [PHP] Add $String to $Num ???
$sess = $String.$Num; session_register($sess); ..is your answer :-) ...you're welcome :-) Maxim Maletsky www.PHPBeginner.com -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: giovedi 4 ottobre 2001 2.53 To: [EMAIL PROTECTED] Subject: [PHP] Add $String to $Num ??? Hi, I have a variable called $String which can contain 3 random numbers like so... $String=12,94,423; I then have $Num which is a single number from 1 - 20, I want to add $String and $Num together like this $String$Num So I would end up with $String1=12,94,423; and then I can enter that value into my session session_register(String.$Num); I have tried everyway I can think of but it never works The reason for doing this is so I can store multiple $Strings in the session and use them later for a search. Can anyone help? Thanks Ade -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Add $String to $Num ???
Hi, No that doesn't quite work, using your example it returned in my session file !10,47,552| If I change session_register($sess); to session_register(sess); it gives me sess|s:9:10,47,552; And what I want is String1(or 2,3,4,5 etc whatever the value of $Num is)|s:9:10,47,552; Ade -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]