mirror of
https://github.com/tim-krehan/shopping-list.git
synced 2024-11-23 22:30:41 +01:00
last minute fix
This commit is contained in:
parent
199539a1c3
commit
7cb09a2e67
1 changed files with 3 additions and 2 deletions
|
@ -33,8 +33,9 @@ if ($result->num_rows == 1)
|
||||||
$insertQuery->execute();
|
$insertQuery->execute();
|
||||||
|
|
||||||
}
|
}
|
||||||
$updateQuery = $mysqli->prepare("UPDATE `users` SET `last_login` = \'".date("Y-m-d H:i:s")."\' WHERE `uid` = ?;");
|
$lastLoginDate = date("Y-m-d H:i:s");
|
||||||
$updateQuery->bind_param($userdetails["uid"]);
|
$updateQuery = $mysqli->prepare("UPDATE `users` SET `last_login` = ? WHERE `uid` = ?;");
|
||||||
|
$updateQuery->bind_param("ss", $lastLoginDate, $userdetails["uid"]);
|
||||||
$updateQuery->execute();
|
$updateQuery->execute();
|
||||||
$mysqli->close();
|
$mysqli->close();
|
||||||
header("Location: ".$_POST["refurl"]);
|
header("Location: ".$_POST["refurl"]);
|
||||||
|
|
Loading…
Reference in a new issue