You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
550 B

<?
include_once __DIR__ . '/../database/db.php';
class Job {
public $id;
public $person_id;
public $company_id;
public function __construct($id, $person_id, $company_id) {
$this->id = $id;
$this->person_id = $person_id;
$this->company_id = $company_id;
}
}
class Jobs {
static function create($job){
$query = file_get_contents(__DIR__ . '/../database/sql/jobs/create.sql');
$result = pg_query_params($query, array($job->person_id, $job->company_id));
return true;
}
}
?>