Browse Source

querry tasksOverview

Overview
benno 4 years ago
parent
commit
ff2ff865d5
3 changed files with 12 additions and 0 deletions
  1. 0
    0
      READ ME.txt
  2. 0
    0
      db/migrations
  3. 12
    0
      src/public/index.php

+ 0
- 0
READ ME.txt View File


+ 0
- 0
db/migrations View File


+ 12
- 0
src/public/index.php View File

@@ -86,6 +86,18 @@ class TimeSheetDB extends SQLite3

$query->execute()->finalize();
}
function getTasks ()
{
$query = $this->prepare('SELECT * from tasks');
$dbResults = $query-> execute();
$resultArray = array();

while($row = $dbResults->fetchArray()){
array_push($resultArray,$row);
}

return $resultArray;
}
}

$container->set('db', function () {

Loading…
Cancel
Save