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

PHP

How to create a holiday house booking system using PHP/Jquery?

I'm trying to build a website for a friend that will allow them to take bookings for their holiday house.

The user should be able to select the dates that they would like to stay using the Jquery datepicker.

This would then be sent via email to my friend who can then approve the booking and block out those dates so future visitors don't try and book the same dates.

The issue

I can work out how to display the datepicker in a form pretty easily but I'm not to sure how to go about blocking out dates. Will I need to create a table in MySQL to store that data and if so what should that table look like? Is it possible to do it all using client side technology?

Hopefully someone who's done something similar can offer advice, link me to a tutorial or just point me in the right direction.

Cheers!

1 Answer

Not really linked but i was doing a booking system for a client who does personal training and wanted users to go online and book session online.

I looking into various options but fold the quickest solution for this was using a Wordpress plugin, theres quite a few but appointments+ has quite a lot of options, realise a little shortcut and may not be right but thought id mention it!

Thanks Sam,

I'll definitely look into that and keep it as a fallback option. However my preference is to code it myself as I want to learn how to do it properly.

I agree and if i had more time then I would like to know all the structure to it!