Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Mathieu Loiseau
GameOfWords
Commits
f550a895
Commit
f550a895
authored
Jan 20, 2016
by
Mathieu Loiseau
Browse files
bug fix : database name in query…
parent
b6eee3f5
Changes
1
Hide whitespace changes
Inline
Side-by-side
controllers/hide.card.php
View file @
f550a895
...
...
@@ -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"
;
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment