$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]

Reply via email to