php mysql datetime

date("Y-m-d H:i:s")
Grepper