Add sumarry
This commit is contained in:
parent
a0657ff619
commit
bf36486bf3
5 changed files with 58 additions and 0 deletions
|
|
@ -205,4 +205,16 @@ class Exercice
|
|||
"sha1" => $sha1
|
||||
);
|
||||
}
|
||||
|
||||
public static function get_nbExoMax()
|
||||
{
|
||||
$db = new BDD();
|
||||
$res = $db->unique_query("SELECT count(id) AS max FROM exercices
|
||||
GROUP BY id_theme
|
||||
ORDER BY max DESC
|
||||
LIMIT 1");
|
||||
$db->deconnexion();
|
||||
|
||||
return $res['max'];
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Reference in a new issue