PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
Am a web developper in eco-tourism and i've just start to create database driver
website, where peoples can have a free quote to come on holiday in my country.
My problem is that, when someone request a quote after s/he has filled the quotation form. My php script need to check the arrival date when peoples will come. As in the hotel there's two seasons; one low and the other high. These two seasons have different prices. If s/he come in the low season the script give s/he the low prices else if s/he come in the high season s/he will have high prices.
Am a web developper in eco-tourism and i've just start to create database driver
website, where peoples can have a free quote to come on holiday in my country.
My problem is that, when someone request a quote after s/he has filled the quotation form. My php script need to check the arrival date when peoples will come. As in the hotel there's two seasons; one low and the other high. These two seasons have different prices. If s/he come in the low season the script give s/he the low prices else if s/he come in the high season s/he will have high prices.
Is there someone who can help please??
You can setup a set of records of the relationship of prices and period of time inside database. When PHP gets information from customer, it will check the time s/he arrives in database and retrieve a proper price by excuting a SQL inside PHP.