I have a list of dates in my database for submitting attendance, which is done weekly.
I want to use the dates to generate a link, so that a teacher can click on that date link to submit attendance for that week. I just need to know what’s the best way to go about it. Once they have submitted the data, I want that week’s link to not be clickable. The main thing here is that the dates/links show up in a specific time frame–say 3 days maximum past the end of week date.
I have a list of dates in my database for submitting attendance, which is
Share
For your SQL query, you’ll probably want something like this:
I’m going out on a limb and assuming you’re using MySQL.
See this for more date/time functions: http://dev.mysql.com/doc/refman/5.5/en/date-and-time-functions.html