I have a SQL-query sent from PHP to MySQL, which f.e. looks like this:
SELECT (now()-table.created) FROM table Now I need to replace the MySQL-function "now()" with a a date from PHP (because it's not always "now" I want in the query), but it doesn't work when I pass PHPs "time()" to MySQL.
What PHP method could I use?
DateTime