Cab Fare Calculator

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

Post Reply
benconnekt
Forum Newbie
Posts: 1
Joined: Mon Jan 30, 2012 4:05 pm

Cab Fare Calculator

Post by benconnekt »

Hi Guys,

Not sure if am asking this question at the right section.

Wanted to know if there's a resource for cab fare calculator, this will be able to give instant quote based on the pickup and dropoff zones selected from the form by the user.Or better still a guide on how it can be created from scratch.

Thanks for your help
User avatar
califdon
Jack of Zircons
Posts: 4484
Joined: Thu Nov 09, 2006 8:30 pm
Location: California, USA

Re: Cab Fare Calculator

Post by califdon »

You haven't given any details, but it sounds to me like you just need to create a database with the fare for each possible pickup and dropoff zone combination. Then a simple SELECT statement WHERE pickup=$pu AND dropoff=$do.
Post Reply