Hello,
at the moment I can add the combined date and time into MySQL using
php
$dt1 = date("Y-m-d H:i:s");
is it possible to add the date and time separately?
I thought it might be
$dt1 = date("Y-m-d");
and
$dt2 = time("H:i:s");
but this doesn't seem to work ...
Cheers
Geoff
at the moment I can add the combined date and time into MySQL using
php
$dt1 = date("Y-m-d H:i:s");
is it possible to add the date and time separately?
I thought it might be
$dt1 = date("Y-m-d");
and
$dt2 = time("H:i:s");
but this doesn't seem to work ...
Cheers
Geoff
Comment