the best way, you think.
thanks.
use now() in select query.
like this,
dattime = now();
On the PHP side, you can use the date function:
$date = date('Y-m-d H:i:s');