Wrox Programmer Forums
|
PHP How-To Post 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
 
Old June 3rd, 2003, 05:32 PM
Registered User
 
Join Date: Jun 2003
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default booking form

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??
 
Old June 3rd, 2003, 05:51 PM
Registered User
 
Join Date: Jun 2003
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Say you have a date entered, how are you obtaining whether the date is available? With that info, we might be able to help.
 
Old June 4th, 2003, 03:46 AM
Registered User
 
Join Date: Jun 2003
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to c_capo
Default

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.


:: soulcreation.com ::





Similar Threads
Thread Thread Starter Forum Replies Last Post
Java code for Booking form riaz Java GUI 10 May 17th, 2007 09:33 AM
Booking program. Tankey Access 1 May 2nd, 2006 03:56 PM
Booking form hameed123 PHP How-To 1 May 12th, 2005 11:22 AM
Forward Booking rahilahmed Excel VBA 0 May 24th, 2004 09:25 AM
JavaScriopt booking form yatesie Java Databases 2 November 26th, 2003 11:57 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.