We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9845bd1 commit c4b32a9Copy full SHA for c4b32a9
app/models/Country.php
@@ -0,0 +1,16 @@
1
+<?php
2
+class Country {
3
+ private $db;
4
+
5
+ public function __construct() {
6
+ $this->db = new DatabaseController;
7
+ }
8
9
+ public function getCountries() {
10
+ $this->db->query("SELECT * FROM `countries`");
11
12
+ $result = $this->db->execute()->fetchAll();
13
14
+ return $result;
15
16
+}
0 commit comments