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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
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.