title: Error Number: 1096 Error Number: 1096 No tables
body: <pre><code>class model_trans_gc  extends CI_Model{
      function trans_gc_add()
      {
          $add=array(
              'trans_gc_date' =&gt; $this-&gt;input-&gt;post('trans_gc_date'),
               'trans_gc_no' =&gt; $this-&gt;input-&gt;post('trans_gc_no'),
               'trans_gc_consname' =&gt; $this-&gt;input-&gt;post('trans_gc_consname'),
               'trans_gc_consbank' =&gt; $this-&gt;input-&gt;post('trans_gc_consbank'),
               'trans_gc_consname_add' =&gt; $this-&gt;input-&gt;post('trans_gc_consname_add'),
               'trans_gc_consbank_add' =&gt; $this-&gt;input-&gt;post('trans_gc_consbank_add'),
               'trans_gc_comp' =&gt; $this-&gt;input-&gt;post('trans_gc_comp'),
               'trans_gc_pol' =&gt; $this-&gt;input-&gt;post('trans_gc_pol'),
               'trans_gc_amt' =&gt; $this-&gt;input-&gt;post('trans_gc_amt'),
               'trans_gc_insdate' =&gt; $this-&gt;input-&gt;post('trans_gc_insdate'),
               'trans_gc_risk' =&gt; $this-&gt;input-&gt;post('trans_gc_risk'),
               'trans_gc_from' =&gt; $this-&gt;input-&gt;post('trans_gc_from'),
               'trans_gc_to' =&gt; $this-&gt;input-&gt;post('trans_gc_to'), 
              'trans_gc_packno' =&gt; $this-&gt;input-&gt;post('trans_gc_packno'),
               'trans_gc_packdesc' =&gt; $this-&gt;input-&gt;post('trans_gc_packdesc'),
               'trans_gc_actweight' =&gt; $this-&gt;input-&gt;post('trans_gc_actweight'),
               'trans_gc_charweight' =&gt; $this-&gt;input-&gt;post('trans_gc_charweight'),
                 'trans_gc_method_pack' =&gt; $this-&gt;input-&gt;post('trans_gc_method_pack'), 
                 'trans_gc_frt' =&gt; $this-&gt;input-&gt;post('trans_gc_frt'), 
                 'trans_gc_hamali' =&gt; $this-&gt;input-&gt;post('trans_gc_hamali'), 
                 'trans_gc_sr' =&gt; $this-&gt;input-&gt;post('trans_gc_sr'), 
                 'trans_gc_aoc' =&gt; $this-&gt;input-&gt;post('trans_gc_aoc'), 
                 'trans_gc_doorcln' =&gt; $this-&gt;input-&gt;post('trans_gc_doorcln'), 
                 'trans_gc_doordel' =&gt; $this-&gt;input-&gt;post('trans_gc_doordel'), 
               'trans_gc_riskch' =&gt; $this-&gt;input-&gt;post('trans_gc_riskch'), 
               'trans_gc_dem' =&gt; $this-&gt;input-&gt;post('trans_gc_dem'), 
               'trans_gc_gc' =&gt; $this-&gt;input-&gt;post('trans_gc_gc'), 
               'trans_gc_total' =&gt; $this-&gt;input-&gt;post('trans_gc_total'), 
               'trans_gc_paymode' =&gt; $this-&gt;input-&gt;post('trans_gc_paymode'), 
               'trans_gc_crno' =&gt; $this-&gt;input-&gt;post('trans_gc_crno'), 
              'status' =&gt; '1'
          );
          $this-&gt;db-&gt;insert('trans_gc_add',$add);
          $query=$this-&gt;db-&gt;get();
           return $query-&gt;result();
  
      }
  }
  </code></pre>
  
  <p>Database Error Occurred</p>
  
  <p>Error Number: 1096</p>
  
  <p>No tables used</p>
  
  <p>SELECT *</p>
  
  <p>Filename: C:\xampp\htdocs\speed\system\database\DB_driver.php</p>
  
  <p>Line Number: 330</p>
  
  <p>please help me to resolve this problem </p>