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("/^[^.]+./"
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
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
_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
4 matches
Mail list logo