need a class every hour

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
danwguy
Forum Contributor
Posts: 256
Joined: Wed Nov 17, 2010 1:09 pm
Location: San Diego, CA

need a class every hour

Post by danwguy »

I am helping a lady out building a website for people to register and take English classes online, she wants the classes to start every hour on the hour, but how would I go about writing that into mysql so that when they sign up they can choose the date and time? it seems a bit impossible to write it so that there is a new time every hour in mysql. maybe it would work to write a <select> option in html to have every hour from 12 to 12 and then just write that time into mysql and then allow them to enter the class when the time written to mysql comes up. Any one have any better ideas? I could really use a hand. Thank you.
Post Reply