avm99963 | 7099538 | 2020-09-23 01:03:01 +0200 | [diff] [blame^] | 1 | <?php |
2 | namespace DAFME\Covid; | ||||
3 | |||||
4 | class Subjects { | ||||
5 | public static function getAll() { | ||||
6 | global $con; | ||||
7 | $query = $con->prepare('SELECT * FROM subjects'); | ||||
8 | |||||
9 | if (!$query->execute()) | ||||
10 | return false; | ||||
11 | |||||
12 | return $query->fetchAll(\PDO::FETCH_ASSOC); | ||||
13 | } | ||||
14 | } |