Jump to content

identify date


fantic

Recommended Posts

You could just add a column in your table that's called "booked" and by default, all values are 0 for all rooms. Then when someone wants to book a room, you find that row in your table and checks if the booked row is 0 (if not, it's already booked). If it is, you can allow the person to book it and then change the booked value to 1. Something like that?

 

Edit: You'd of course need a way to set the booking date and expiration as well, but I never tried anything like that so I will make room for a pro. ;D

Link to comment
https://forums.phpfreaks.com/topic/128681-identify-date/#findComment-666912
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.