I have table with orders list. Each order have order date (timestamp 1331182800). For each order user can select automatic reorder by 30, 60 or 90 days (reorder field (int)).
I need sql for cron to select all orders, that have order date = date + reorder. (date order + 30 or 60 or 90 days).
Can You help me with this?
I have table with orders list. Each order have order date (timestamp 1331182800). For
Share
edited to skip the seconds from the comparison. I don’t have a MYSQL engine so some errors still could occur, if that was so I’m sorry about such inconvenient…