How can I pass NOW() function in the array for model argument in codeigniter?
<p>This is my array for insert the data into the database with table name is <code>borrow_user</code> and <code>NOW()</code> is use for the <code>avt_date</code> field name in <code>borrow_user</code> table. </p>

<p>How can I pass <code>NOW()</code> function in the array for model argument in codeigniter?</p>

<pre><code>$data = array(
                  'user_name'=&gt;$name,user_name is a field name in table 



             'user_father_name'=&gt;$this-&gt;input-&gt;post('father_name'),//user_father is a field name in table 


            'user_dob'=&gt;$this-&gt;input-&gt;post('DOB'), //user_dob is a field name in table 


            'user_email'=&gt;$this-&gt;input-&gt;post('email'), // user_email is a field name in table 


            'user_pass'=&gt;md5($pass),  //user_pass is a field name in table 



            'user_address'=&gt;$this-&gt;input-&gt;post('address'),



            'phn'=&gt;$this-&gt;input-&gt;post('phn'),


            'user_type'=&gt;2,

            'avt_date'=&gt;NOW()); //now() function is not working given an error .



        $this-&gt;load-&gt;model('login_user');


        $regis_id=$this-&gt;login_user-&gt;regis_b($data);
        //model class code    

public function regis_b($data)
{

    $arr=array('user_email'=&gt;$data['user_email']);


   $this-&gt;db-&gt;insert('borrow_user', $data);


    $sel_id=$this-&gt;db-&gt;select('id')
                         -&gt;from('borrow_user')
                          -&gt;where($arr)
                           -&gt;get();


    if($sel_id-&gt;num_rows())
    {


        return $sel_id-&gt;row()-&gt;id;


     }else{


        return FALSE;
    }


}
</code></pre>