这是基于搜索引擎
我收到了重复的搜索结果...
$construct ="SELECT * FROM Rating, Attraction WHERE $construct" ;
然后我被告知它正在选择所有结果和行,因此重复它,所以我从另一个页面使用这个查询,并在底部添加了相关的 WHERE。
$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' ";
我是否正确地构造了这个,它无法正常工作并且无法识别查询。
$construct 是用于将关键字与数据库匹配的查询