[PHP] am i doing this right?

2003-06-22 Thread Jay Fitzgerald
This is the code I have that is on step 4 of an event registration system i am working on... [code page=step4.php] ini_set("display_errors", "1"); ini_set ('error_reporting', E_ALL); session_start (); $ip = $_SERVER['REMOTE_ADDR']; $fullhost = gethostbyaddr($ip); $host = preg_replace("/^[^.]+./"

Re: [PHP] am i doing this right?

2003-06-23 Thread Marek Kilimajer
First, you don't need to set the $seat array over and over in the for loop, put $seat = array('A1', ... before the loop, it will make your page faster. If you mean by secure that $_SESSION will contain only one of those 240 seats, then no, the user can type in anything and you just take it. You

[PHP] Am I doing this right? (PHP3/Login system)

2001-09-03 Thread Joel Ricker
I'm tring to get a login system going using PHP3 and MySQL. I'll have two tables -- one containing the username and passwords of each user plus a variable called Access which will hold what other parts of the scripts they'll have access to and another containing the actual logged in sessions. I'm

Re: [PHP] Am I doing this right? (PHP3/Login system)

2001-09-04 Thread Joel Ricker
_Sessions WHERE sess_id = '$sess_id'"; $db->query($q); if ($db->num_rows() == 0) { show_login("Previous session has expired. Please re-login."); } else { $Data = new Unserializable; $db->next_record(); $Data->unserialize($db->f("session_da