title: Codeigniter View -Insert Stament
body: <p>Codeigniter- insert stamen in a view</p>
  
  <p>How have an insert statement in view?</p>
  
  <p>In selecting I have this query in one of my views in codeigniter</p>
  
  <pre><code>$query = $this-&gt;db-&gt;query('SELECT * FROM seminarattendee');
  $number_of_attendee=$query-&gt;num_rows();
  </code></pre>
  
  <p>it outputs the number of rows in my table "seminarattendee"</p>
  
  <p>this time I want to insert in a table</p>
  
  <p>What I'm gonna put in my <strong>$query</strong>?</p>