Wrox Programmer Forums
Go Back   Wrox Programmer Forums > PHP/MySQL > PHP Databases
| Search | Today's Posts | Mark Forums Read
PHP Databases Using PHP in conjunction with databases. PHP questions not specific to databases should be directed to one of the other PHP forums.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the PHP Databases 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 March 30th, 2006, 10:44 AM
Registered User
 
Join Date: Mar 2006
Location: Finchampstead, Berkshire, United Kingdom.
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Avoiding Double bookings via 'reserved' status

Hi there,

I am wondering if anyone knows the best way to tackle this problem.

I am setting a site up where clients can book holiday homes on line. One thing I am concerned about is that after a customer has selected their dates out of the ones marked 'unbooked', while they are filling in their details etc someone else might go ahead and book the same dates and screw everything up. This is a bit more likely with this company as they have alot of potential clients who all want things at the same times (i.e. holidays) and not that many holiday homes at the moment.

One thought I had was to add a 'reserved' status to the selected dates in the bookings table and make those dates appear as unavailable to anyone else. The problem I can see with this though is that if the clients computer crashes, or hangs up, or they get distracted, whatever, these dates stay in the database as reserved and this unbookable. How could one make the database refresh itself to get rid of any bookings with a 'reserved' status that are over a certain time old and how can it check before it does so that customer x hasn't just that second come back to finish ther booking off!

Does anyone know what the standard way around this problem is, on like flight and hotel booking sites and such? And please I am a noobie so please talk s l o w l y...

Thanks




Similar Threads
Thread Thread Starter Forum Replies Last Post
error code 1001 reserved jeremy1048 Access 3 April 9th, 2008 06:14 AM
avoiding duplications josephx XSLT 5 January 5th, 2008 04:29 PM
double bookings urbanaccess Access 1 January 18th, 2007 08:41 AM
removing the reserved line for the xml tag muki XSLT 2 November 2nd, 2005 04:01 AM
Reserved word conflict! Timmyboy SQL Language 4 June 14th, 2004 02:00 AM





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