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

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -