Hello! I’m preparing for the launch of a website I am working on, and there are a few problems I have ran into that I haven’t yet solved. The website is a fairly simple one, it keeps track of local events in my town. Anyone can get online and submit an event, then I see a form where I can approve or deny them (no spam!), and then they appear on the webpage for everyone to see. I have a couple different categories, such as night life, local bands, etc. I’m doing all of this with php and mysql.
Here are the things I am having issues with. I want the events list something like
Monday, December 5
event1
event2
Tuesday, December 6
event3
event4
My problem lies in getting the bolded dates to appear when all the events for a day have been queried. Should I use an if then command? If so, can someone give me an example as to what that would look like? I can show you the query I have now if needed.
The other problem I have is when I am going to limit the number of events per page to about 20, and I know I can do this with the LIMIT SQL command. But, how do I get the bolded date to appear again on the next page, so the user will know what date they are looking at.
And my final problem is about user event submission. Currently the user will have to enter the event’s date in the SQL understood format, something like 2011-12-20. But I would rather the user see a small calendar where they can click the date and I could then submit it to my database.
Any help would be greatly appreciated!