Here's another option as well, in case it helps out:
$var1 = "Pizza";
$var2 = "var1";
$var3 = $$var2;
print "var3 = $var3";
Output:
var3 = Pizza
> -Original Message-
> Ok, assuming everything's working correctly except for the use of
> $prevtime in the SESSION, then here's one answer
ould divide
the rooms up that way:
$_SESSION[$roomname]["PrevTime"] = $prevtime;
-TG
> -Original Message-
> From: John Gostick [mailto:[EMAIL PROTECTED]
> Sent: Friday, September 10, 2004 5:47 PM
> To: PHP General
> Subject: [PHP] Can I name a session variable
Hi,
I've encountered a problem I can't seem to find much reference to on the web, so I
was wondering if anyone here could help me...
Fisrt a brief background:
I am building a fairly simple PHP/MySQL chat system with multiple rooms. Each room is
loaded from the main chat page by clicking o
3 matches
Mail list logo