equivalent of mysql CURRENT_DATE() function in PHP -
hi i'm inserting date entry field has type timestamp , field default current_timestamp ...my insert value
'.($data[16] == '' ? current_date() : $data[16]).'
how format current_date() 30-nov-10 match $data[16] format if not present. should change field type date , not timestamp?
date($format,strtotime(current_date))
works me.
Comments
Post a Comment