I have a perfectly working program that weekly captures information from my database. My current problem is that now I have to change the program by selecting the current week (from Sunday to Saturday) to select the week starting from Wednesday to Tuesday.
Here is the query that I have now that works fine on Sunday from Saturday:
SELECT time, roNum
FROM $user
WHERE YEAR(date) = YEAR(CURDATE()) AND WEEK(date) = WEEK(CURDATE());
Any help would be greatly appreciated. Thank.
source
share