[eluser]Michal1[/eluser]
Hello guys,
I have problem with working with date and time. Let say I have simple css and when I add new article I want to save the date when the current article was created. The question what is the best type of table in mysql and how should I save it?
my controller function for adding articles look something like this:
Quote:public function add_article()
{
$article = array(
'title'=>$this->input->post('title')
);
$this->site_model->insert_article($article);
redirect ('site');
}
So I should probably create another field in that array and do something like
Quote:$article = array(
'title'=>$this->input->post('title')
'date'=> something here?
);