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

[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