PHP How-ToPost your "How do I do this with PHP?" questions here.
Welcome to the p2p.wrox.com Forums.
You are currently viewing the PHP How-To section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
How would I use php and a mysql database to allow my clients to enter dates when they would like to book my accomodation and receive a message on screen informing them of whether the dates are available??
You need a reservation table where you keep all dates.
Compare the date entered in the form with the dates in this table.
IF it's already used then the client can't stay in your accomodation or he/she has to choose another date.
A nice thing to make is to show the dates that are already used.