我试图根据用户登录会话变量过滤数据库中的表值 这是我的代码:
if(isset($_POST['search'])){
$submit = $_POST['submit'];
$query = "SELECT * FROM milkvalue WHERE userid = '$user_id', CONCAT( `month`) LIKE '%".$submit."%' ";
$search_result = filterTable($query);
} else {
$query = "select * from milkvalue where userid = '$user_id'";
$search_result = filterTable($query);
}
function filterTable($query){
$con = new mysqli("localhost", "root", "", "milk");
$filter_Result = mysqli_query($con,$query);
return $filter_Result;
}
答案 0 :(得分:0)
您的CONCAT查询不正确。它应该是
npm install -g ionic@latest