diff options
Implemented value insertion into DB
1 files changed, 3 insertions, 2 deletions
| -rw-r--r-- | src/index.php | 5 |
diff --git a/src/index.php b/src/index.php index 5fefff4..ecebcd9 100644 --- a/src/index.php +++ b/src/index.php @@ -2,8 +2,9 @@ <?php include_once("models/JobOffer.php"); - $jb = new JobOffer("a", "", "", 0); + $jb = new JobOffer("Test", "A test", "TheTest", 11); + JobOffer::insertInDB($jb); foreach(JobOffer::getAll() as $key => $obj) { - echo $obj->id . "<br>"; + echo "{$obj->id} {$obj->title}<br>"; } ?> |
