title: How can I Use Prepared Statements in CodeIgniter
body: <p>Hi all I need to use Prepared Statements in my site. I tried use this</p>
  
  <pre><code>$sql = "SELECT * FROM tbl_user WHERE uid=:id and activation_key=:key";
  $query = $this-&gt;db-&gt;query( 
      $sql, 
      array( ':id' =&gt; $uid ,':key' =&gt; $activation_key)
  );
  </code></pre>
  
  <p>but this is not working. When I change <code>:id</code> and <code>:key</code> to <code>?</code> its working.</p>