如何使我的搜索表单仅列出hidden = '0';
+ 其余选项的结果?
$stmt = $dbh->prepare("
SELECT *
FROM users u
LEFT JOIN menues m
ON u.user_id = m.restaurant_id
WHERE (restaurant LIKE CONCAT('%', :term, '%'))
OR city LIKE CONCAT('%', :term, '%')
");
$stmt->bindParam(":term", $term);
$stmt->execute();
提前致谢 :)