Skip to content
Snippets Groups Projects
Commit c047052b authored by LAMINO-HARO FERNANDO-JOEL's avatar LAMINO-HARO FERNANDO-JOEL
Browse files

Merge branch 'AjoutAvatar' into 'dev'

Ajout champs avatar active

See merge request !59
parents 089897f9 0d289dca
Branches
Tags
1 merge request!59Ajout champs avatar active
......@@ -4,6 +4,7 @@ $username = "group1-1";
$password = "Unistra2023#";
$dbname = "bdd_ludo";
try {
$pdo = new PDO("mysql:host=$servername;dbname=$dbname", $username, $password);
// set the PDO error mode to exception
......@@ -19,12 +20,13 @@ try {
$res = $pdo->prepare($req);
$res->execute([$_POST["id_joueur"]]);
if ($row = $res->fetch()) {
$retVal = array(
"Pseudo" => $row["pseudo"],
"nbVictoire" => $row["nbVictoire"],
"nbMatch" => $row["nbMatch"],
"activeAvatar" => $row["activeAvatar"],
"response" => "Success"
);
} else {
......
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