Hello everyone,
I am trying to create a minicab booking form with mysql I have created following tables
category (this where the locations categorised like Airport, Postcode, Stattions etc)
Locations (this is where the pick up address and destination address will be choosed from)
Journeys (This is where the journey pick up, destination, vehicle and the price will be stored.)
What I am trying to achieve is, after storing all the information into tables, visitors will be schoosing a pick up address and destination so they can get a price. At the moment addresses are loaded from LOCATIONS table into both fields. See picture below:
The problem with it is, the locations are shown regardles if there is a journey with price with it or not. What I want is to fetch only the data from JOURNEYS with price.
Could anyone help me with this?