@ -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");