I am trying to use following queries but the browser says Fatal error: Call to undefined function FROM_UNIXTIME()
$query = "UPDATE table
SET datetimefield = FROM_UNIXTIME($phpdate)
WHERE...";
$query = "SELECT UNIX_TIMESTAMP(datetimefield)
FROM table
WHERE...";
I am following http://www.richardlord.net/blog/dates-in-php-and-mysql
SELECT FROM_UNIXTIME((UNIX_TIMESTAMP(NOW()))) AS test