您好我正在努力让以下准备好的声明发挥作用,任何人都可以帮助我吗?我知道怎么做没有符号%但在这种情况下我需要它来执行搜索
$sql = "SELECT user_first, user_last, user_email, user_id ";
$sql.=" FROM users";
$sql.=" WHERE ( user_first LIKE ?% ";
$sql.=" OR user_last LIKE ?% ";
$sql.=" OR user_email LIKE ?% )";
$sql.=" AND user_role='partner'";
$query= mysqli_stmt_prepare($conn, $sql);
mysqli_stmt_bind_param($query, 'sss', $requestData['search']['value'], $requestData['search']['value'], $requestData['search']['value'] );
mysqli_stmt_execute($query);
mysqli_stmt_store_result($query);
$totalFiltered = mysqli_stmt_num_rows($query);