From 588c444417c1aa68eccfe9cb96b6d10ebd4a0a84 Mon Sep 17 00:00:00 2001 From: Syndamia Date: Thu, 1 Apr 2021 09:15:17 +0300 Subject: Implemented a getall values from db method in JobOffer and show results in index --- src/index.php | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/index.php') 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 . "
"; + } ?> -- cgit v1.3.1-23-gd82d