Welcome Guest, Not a member yet? Register   Sign In
Insert auto date
#1

Hello,

I am trying to insert automatic date but unable to do so.

mysql:

content_article
content_date
content_id
content_name


models\Pages_model.php


PHP Code:
public function insert_content()
 
       {
                
                
$data = array(
                 
   'content_id' => $this->input->post('content_id'),
                 
   'content_name'  => $this->input->post('content_name'),
                    
'content_article'  => $this->input->post('content_article')
                );
            
 
               return $this->db->insert('content'$data);
 
       

but I unable to see the actual current date printed there.  I wonder how to make it printed automatically just by inserting an article?
" If I looks more intelligence please increase my reputation."
Reply


Messages In This Thread
Insert auto date - by davy_yg - 06-21-2016, 06:17 PM
RE: Insert auto date - by pravins - 06-21-2016, 09:46 PM
RE: Insert auto date - by davy_yg - 06-22-2016, 12:43 AM
RE: Insert auto date - by pravins - 06-22-2016, 12:53 AM
RE: Insert auto date - by InsiteFX - 06-22-2016, 12:07 AM



Theme © iAndrew 2016 - Forum software by © MyBB