[eluser]justmelat[/eluser]
Yes, I am.
Here is the controller:
function jobs()
{
$data['title']="PureStaff-Jobs";
$data['heading']="View Current Jobs";
//$data['query']=$this->db->get('jobs');
$this->db->select('contractors.lname, contractors.fname, jobs.`position`, clients.companyName, jobs.current');
$this->db->from('jobs');
$this->db->join('contractors', 'contractors.id = jobs.contractor_id', 'inner');
$this->db->join('clients', 'clients.id = jobs.company_id', 'inner');
$this->db->where(array('jobs.current' => 'Yes'));
$data['$query'] = $this->db->get();
$this->load->view('jobs_view.php', $data);
}
Here is the View:
</head>
<body>
<h2><?php echo $heading; ?></h2>
<p><?php echo anchor('purestaff/index','Back Home');?></p>
<hr>
<?php $this->table->set_heading('JobID', 'ContractorID', 'CompanyID','Position','Start Date','End Date');?>
<?php echo $this->table->generate($query); ?>
<hr>
</body>
</html>