PDO
This commit is contained in:
@@ -11,7 +11,7 @@ $result = $db->query("SELECT * FROM location ORDER BY created_at ASC");
|
||||
|
||||
$coords_array = array ();
|
||||
|
||||
while ($row = $result->fetchArray(SQLITE3_ASSOC)) {
|
||||
while ($row = $result->fetch(PDO::FETCH_ASSOC)) {
|
||||
$coords_array[]=$row;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user