我在搜索某些东西时使用它:
$sql = mysqli_query($con,"SELECT * FROM persons WHERE active != 'No' AND LOWER(firstname) LIKE '%$find%' ORDER BY date DESC LIMIT $start, $limit");
我想包括一个额外的搜索参数
$sql = mysqli_query($con,"SELECT * FROM persons WHERE active != 'No' AND LOWER(firstname) LIKE '%$find%' AND LOWER(lastname) LIKE '%$mytest%' ORDER BY date DESC LIMIT $start, $limit");
但这似乎不起作用。第二个 LIKE 使结果为空。如何包含第二次搜索?