Commit f550a895 authored by Mathieu Loiseau's avatar Mathieu Loiseau
Browse files

bug fix : database name in query…

parent b6eee3f5
......@@ -5,7 +5,7 @@
$user = user::getInstance();
if(($user->id == $_GET['user_id']) && isset($_GET['card_id'])){
$db = db::getInstance();
$db->query("UPDATE `GoW`.`cartes` SET `dateSuppression` = CURRENT_TIMESTAMP, `idEraser` = '".$user->id."' WHERE `cartes`.`idCarte` = '".$_GET['card_id']."';");
$db->query("UPDATE `cartes` SET `dateSuppression` = CURRENT_TIMESTAMP, `idEraser` = '".$user->id."' WHERE `cartes`.`idCarte` = '".$_GET['card_id']."';");
if($db->affected_rows() == 1){
echo "OK";
}
......
Supports Markdown
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