thanks for the reply jkon, you can ignore the "I have managed to display the data with all the tables joined to create 1 record." that is from a different part of the site, which excludes the url parameter and in there I used the where clause and the code for that is below.
see below
"SELECT property_listings_db.property_listing_title, property_listings_db.short_description, ireland_states_db.state_name, listing_type.type_name, listing_images_db.proimagethumbFilename, city_db.city_name, property_listings_db.propertydb_ID FROM property_listings_db, ireland_states_db, listing_type, listing_images_db, city_db WHERE property_listings_db.city_ID = city_db.city_ID AND city_db.state_ID = ireland_states_db.state_ID AND property_listings_db.type_ID = listing_type.type_ID AND property_listings_db.propertydb_ID = listing_images_db.propertydb_ID ORDER BY property_listings_db.propertydb_ID DESC"
the url parameter being passed is state_ID and it looks something like this
estate.com/properties/property_listings.php?state_ID=1&Submit=Search
since the sql statement above worked without the url paramerter, is ther a way to filter it using the url parameter, i.e to only show results of state_ID=1? hope that makes sence,
I had tried to use colname in the where clause (of the statement above
(AND city_db.state_ID = ireland_states_db.state_ID = state_ID = %s
)) but it gave me an error, "State_ID where clause is ambiguous "
the below statement works using the URL parameter but leaves out all the other 4 tables. and only shows the property_listings_db table.
"SELECT propertydb_ID, property_listing_title, bathrooms, bedrooms, state_ID, city_ID, property_listing_date, type_ID, property_listing_price, long_description, short_description FROM property_listings_db WHERE state_ID = %s ORDER BY property_owner_ID DESC"
hope that explains alot.