I have this query;
"INSERT INTO download(download_key, ip, file, expire) VALUES ('".$text."',
'".$mysql->real_escape_string($_SERVER['REMOTE_ADDR'])."',
'".$searchQuery['file_match']."',
'NOW() + INTERVAL 10 MINUTES')"
When I insert this in the database, the row expire is always 0000-00-00 00:00:00. I have tried the types:
- TIMESTAMP
- DATE
- DATETIME
- TIME
But is always 0000-00-00 00:00:00 or 00:00:00.
What is the right type for NOW()? I`m using MYSQL