Using PHP to create a MySQL datetime

For reference

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

Leave a Reply

Your email address will not be published. Required fields are marked *