Hi! Thanks for getting back to me. I'm just curious how to reference the ID ? I'm trying some code but it's not working. Please take a look.
After the insert code done at each login, whether successful or not, I added this :
$InsertQuery->execute();
$_SESSION['lastid'] = $InsertQuery->insert_id;
Then I have this at the top of the login page :
if ($_GET['error']) {
$UpdateQuery = new WA_MySQLi_Query($eee);
$UpdateQuery->Action = "update";
$UpdateQuery->Table = "logins";
$UpdateQuery->bindColumn("success", "i", "". 0 ."", "WA_DEFAULT");
$UpdateQuery->addFilter("logid", "=", "i", "".($_SESSION['lastid']) ."");
echo $UpdateQuery;
$UpdateQuery->execute();
$UpdateGoTo = "";
if (function_exists("rel2abs")) $UpdateGoTo = $UpdateGoTo?rel2abs($UpdateGoTo,dirname(__FILE__)):"";
$UpdateQuery->redirect($UpdateGoTo);
Am I far off? This seems like it should work. Thanks!