Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trial
James Ingmire
11,901 PointsSimple online booking system for Beautician?
Want to design a booking system for a beautician. Basically to have a calender of the current month on the booking page with the days and times she is free. Users can look at what day and time they can book, click and send, we receive the message and can reply accordingly to confirm.
Just wanted to know of examples or information on this type of thing is available? Still in the middle of learning php so not quite there yet but if any articles or similar would be a help to focus me on the right track, any idea or comments would be a big help.
Thanks.
2 Answers
Andrew Shook
31,709 PointsI would probably use the unix time stamp for the date and time of the appointment as a unique id to store the appointment in the database. That way no double booking. Simplest front-end approach would be to just have a couple of select list's to chose date and time. Put those in a form that posts the info to the server, and then convert the info into a unix time stamp, and check the db to make sure this time is available. Return true for available and false if not. If true, save a new appointment to db and send confirmation. Taken one step farther, you should check the date every time the page loads and query the db for all appointments that day. Use the info to construct the drop downs for that day and remove the times she is not available.
Once you get all that up and running you could go back and pretty up the front end using a jQuery calendar library and AJAX for the form submission. However, I would start simple and work your way up to the more complicated UI.
Bryan Knight
34,215 PointsYea that was a really good responce Andrew. My girl works in a salon doing nails and all of her friends do hair, skin or nails as well. I could do this for them at the salon as a side project and have something to put in my portfolio.
James Ingmire
11,901 PointsJames Ingmire
11,901 PointsThanks for your responce, makes sense and helps alot.