[PHP] Can I name a session variable using another variable?

2004-09-10 Thread John Gostick
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

[PHP] creating multiple sessions

2004-09-10 Thread John Gostick
Hi, I've encountered a situation where I need to have two or more SEPARATE sessions running in separate windows. The reasons are complicated, so I'll keep things simple by just explaining the problem! Unfortunately my understanding of sessions is a little sketchy at best so please stick with

[PHP] php die function for MySQL connection errors

2004-08-14 Thread John Gostick
Hi, I have a quick question about using the PHP die() function. I'm building a site around a MySQL database, and when I connect to the database from a PHP page I use the following code: $connection = mysql_connect($host, $user, $password) or die(Error connecting to SQL server); $db =