Posts Tagged ‘type’

Generate MySQL Datetime Type Using PHP Date() Function

Posted 05 Feb 2010 — by admin
Category php

If you want to insert a datetime that matches the default mysql datetime type format use this

date('Y-m-d H:i:s');