This is based on a search engine
I am receiving duplicate search results from this...
$construct ="SELECT * FROM Rating, Attraction WHERE $construct" ;
Then I was informed that it was selecting all results and rows and therefore repeating it so i used this query from another page I have and added the relevant WHERE on the bottom.
$construct = "SELECT Attraction.*, Type.TypeName, Rating.RatingUrl ";
$construct .= "FROM Attraction ";
$construct .= "INNER JOIN Type ON Attraction.Type = Type.TypeID ";
$construct .= "INNER JOIN Rating ON Attraction.AttractionID = Rating.AttractionID ";
$construct .= "WHERE Attraction = '$construct' ";
Have do i structure this correctly, it is not working and recognising the query.
$construct is a query for matching keywords with the database