Commit 2919e771 authored by Nicolas's avatar Nicolas
Browse files

Update ep_function.php pour récupérer lastinsertId sur base MariaDB

parent b9ddae6f
......@@ -79,7 +79,10 @@ function AjouterAlias($status, $alias,$email, $life, $comment) {
die();
}
UpdateVirtualDB();
return $dbco->lastInsertId();
// return $dbco->lastInsertId();
$stmt = $dbco->query("SELECT LAST_INSERT_ID()");
return $stmt->fetchColumn();
}
// delete email
......
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