restructuration de la BDD en cours, réécriture de score.php

master
adplantade 5 years ago
parent de9f5504bf
commit 2cb2543942

Binary file not shown.

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.5 KiB

@ -12,11 +12,12 @@ $database = new SQLite3("data.db");
if(stristr($_GET['mode'], "p") === FALSE) if(stristr($_GET['mode'], "p") === FALSE)
{ {
$sql='select max(points) from scores where mode="'.$_GET['mode'].'" and diff="'.$_GET['diff'].'"'; $sql='select max(points) from scores where mode="'.$_GET['mode'].'" and diff="'.$_GET['diff'].'"';
//$sql='select max(points) from score where game_mode=' //$sql='select max(points) from score where game_mode='.$_GET['mode'].'" and difficulty="'.$_GET['diff'].'" and dots_amount='.getCookie("dotsAmount").' and pause='.getCookie("pause");
} }
else else
{ {
$sql='select min(points) from scores where mode="'.$_GET['mode'].'" and diff="'.$_GET['diff'].'"'; $sql='select min(points) from scores where mode="'.$_GET['mode'].'" and diff="'.$_GET['diff'].'"';
//$sql='select max(points) from score where game_mode='.$_GET['mode'].'" and difficulty="'.$_GET['diff'].'" and dots_amount='.getCookie("dotsAmount").' and pause='.getCookie("pause");
} }
$result = $database->query($sql); $result = $database->query($sql);

Loading…
Cancel
Save