diff options
Implemented a getall values from db method in JobOffer and show results in index
1 files changed, 3 insertions, 0 deletions
| -rw-r--r-- | src/index.php | 3 |
diff --git a/src/index.php b/src/index.php index 285f6e7..6f290d6 100644 --- a/src/index.php +++ b/src/index.php @@ -3,4 +3,7 @@ include_once("models/JobOffer.php"); $jb = new JobOffer("a", "", "", 0); + foreach(JobOffer::getAll() as $key => $obj) { + echo $obj->salary . "<br>"; + } ?> |
