Commit dc824891 authored by S.Holzhauer's avatar S.Holzhauer

lastid defined at beginning of file

parent 7a393fdc
......@@ -5,6 +5,7 @@ $ID = $_REQUEST['ID'];
date_default_timezone_set("Europe/Amsterdam");
$time = date("H:i:sa");
$date = date("Y-m-d");
$last_id;
error_log("\nserver.php");
......@@ -96,7 +97,7 @@ if ($ID == "IRPS001" ){
//Connect the previous made notification to the appropriat accounts
$sql = "INSERT INTO Account_has_Notificatie (Notificatie_NotificatieID,Account_AccountID,Status)
VALUES ($last_id,$AccountID,0)";
VALUES ('$last_id','$AccountID',0)";
$result = $conn->query($sql);
//see how many notifications an account already has.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment