title: Codeigniter -> function using empty_table
body: <p>I am trying to empty the tables but I was wondering have I got the function correct?</p>
  
  <p><strong>Model:</strong></p>
  
  <pre><code>public function removeQuote()
      {
          $this-&gt;db-&gt;empty_table('companyDetails,hostingDetails,layoutDetails');
      }
  </code></pre>
  
  <p><strong>Controller:</strong></p>
  
  <pre><code>public function submit()
  {
          $data['companyContact'] = $this-&gt;quote-&gt;getCompanyDetails()-&gt;companyContact;
  
          $this-&gt;load-&gt;view('submit',$data);
  
          $this-&gt;quote-&gt;removeQuote();
  }
  </code></pre>
  
  <p><strong>Error:</strong></p>
  
  <pre><code>Table '_quote.companyDetails,hostingDetails,layoutDetails' doesn't exist
  
  DELETE FROM `companyDetails,hostingDetails,layoutDetails`
  </code></pre>