Hi everyone, can someone help me on php and mysql database

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!

Moderator: General Moderators

Locked
z_cool
Forum Newbie
Posts: 6
Joined: Wed May 24, 2006 12:56 am

Hi everyone, can someone help me on php and mysql database

Post by z_cool »

hi everyone,

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??
[url=http://forums.devnetwork.net/viewtopic.php?t=30037]Forum Rules[/url] Section 1.1 wrote:3. Do not make multiple, identical posts. This is viewed as spam and will be deleted.
bigjl
Forum Newbie
Posts: 15
Joined: Fri Jan 13, 2006 11:15 am

Re: Hi everyone, can someone help me on php and mysql databa

Post by bigjl »

z_cool wrote:hi everyone,

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.
Locked