I am trying to empty the tables but I was wondering have I got the function correct?
Model:
public function removeQuote()
{
$this->db->empty_table('companyDetails,hostingDetails,layoutDetails');
}
Controller:
public function submit()
{
$data['companyContact'] = $this->quote->getCompanyDetails()->companyContact;
$this->load->view('submit',$data);
$this->quote->removeQuote();
}
Error:
Table '_quote.companyDetails,hostingDetails,layoutDetails' doesn't exist
DELETE FROM `companyDetails,hostingDetails,layoutDetails`
Best Answer
Apparently you can't do this
Instead you will have to call
empty_table
three times:You can always hack CodeIgniter DB_active_rec.php file so that it fits your needs.