Summary Files Commits Branches @commit @diff @stats
path: root / src / index.php
blob: 55bba394225a42d9fa68e0a6f450139923518fd7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
<p>Hello World!</p>
<?php
	include_once("models/JobOffer.php");

	$jb = new JobOffer("Test", "A test", "TheTest", 11);
	// JobOffer::insertInDB($jb);
	foreach(JobOffer::getAllFromDB() as $key => $obj) {
		echo "{$obj->id} {$obj->title}<br>";
	}
	echo "<br>";

	$gottenjb = JobOffer::getFromDBById(1);
	echo $gottenjb->title;
?>