Back
I'm using now() in MySQL query.
INSERT INTO table SET data = '$data', date = now()
But I want to add 1 day to this date (so that date should contain tomorrow).
Is it possible?
Try this code:
NOW() + INTERVAL 1 DAY
You can use CURDATE instead of NOW, If you are only interested in the date not in the date and time.
CURDATE() + INTERVAL 1 DAY
31k questions
32.8k answers
501 comments
693 users