db; $local_debug = false; if ($local_debug) { echo "Debug SQL: uid - $username passwd - $passwd"; } $db->query("SELECT * FROM accounts WHERE account_lid = '$username' AND " . "account_pwd='" . md5($passwd) . "' AND account_status ='A'",__LINE__,__FILE__); $db->next_record(); if ($db->f("account_lid")) { return True; } else { return False; } } } ?>