Summary Files Commits Branches @commit @diff @stats
path: root / src / index.php
diff options
context:
space:
mode:
1 files changed, 6 insertions, 2 deletions
-rw-r--r--src/index.php8
diff --git a/src/index.php b/src/index.php
index ecebcd9..55bba39 100644
--- a/src/index.php
+++ b/src/index.php
@@ -3,8 +3,12 @@
include_once("models/JobOffer.php");
$jb = new JobOffer("Test", "A test", "TheTest", 11);
- JobOffer::insertInDB($jb);
- foreach(JobOffer::getAll() as $key => $obj) {
+ // JobOffer::insertInDB($jb);
+ foreach(JobOffer::getAllFromDB() as $key => $obj) {
echo "{$obj->id} {$obj->title}<br>";
}
+ echo "<br>";
+
+ $gottenjb = JobOffer::getFromDBById(1);
+ echo $gottenjb->title;
?>