Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Mathieu Loiseau
GameOfWords
Commits
1df07ab3
Commit
1df07ab3
authored
Aug 22, 2016
by
Mathieu Loiseau
Browse files
allow any name for DB
parent
d5711f5e
Changes
1
Hide whitespace changes
Inline
Side-by-side
controllers/update_score_coeff.php
View file @
1df07ab3
...
...
@@ -73,7 +73,7 @@ class ScoreHandler{
$role
=
"scoreDevin"
;
break
;
}
$sql
=
"UPDATE
`GoW`.
`score` SET `
$role
` = `
$role
` + (
$diff
), `scoreGlobal`=`scoreGlobal`+ (
$diff
) WHERE `score`.`userid` = '
$user_id
' AND `langue`='"
.
$this
->
lang_iso
->
french_for
(
$lang_code
)
.
"'"
;
$sql
=
"UPDATE `score` SET `
$role
` = `
$role
` + (
$diff
), `scoreGlobal`=`scoreGlobal`+ (
$diff
) WHERE `score`.`userid` = '
$user_id
' AND `langue`='"
.
$this
->
lang_iso
->
french_for
(
$lang_code
)
.
"'"
;
$this
->
db
->
query
(
$sql
);
if
(
$this
->
db
->
affected_rows
()
!=
1
){
throw
new
Exception
(
"store score in db : mais que se passe-t-il ? (
$sql
)"
);
...
...
Write
Preview
Markdown
is supported
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