我收到以下错误请帮助
警告:mysql_num_rows() 期望参数 1 是资源,布尔值在第 16 行的 D:\hosting\10102937\html\search.php 中给出
警告:mysql_num_rows() 期望参数 1 是资源,布尔值在第 23 行的 D:\hosting\10102937\html\search.php 中给出
警告:mysql_num_rows() 期望参数 1 是资源,布尔值在第 25 行的 D:\hosting\10102937\html\search.php 中给出
这是我的 PHP 代码
include("connection.php");
$type = $_POST['type'];
$address = $_POST['address'];
$bedrooms = $_POST['bedrooms'];
$min = $_POST['price'];
$max = $_POST['price'];
//$sql ="SELECT * FROM subscribers2 WHERE type = '%$type%' AND address = '%$address%' AND bedrooms = '%$bedrooms%' AND min as '%$min%' AND max as '%$max%' ";
$rs_result = mysql_query ($sql);
$num_rows = mysql_num_rows($rs_result);
$query = mysql_query("SELECT * FROM subscribers2 WHERE type = '%$type%' AND address = '%$address%' AND bedrooms = '%$bedrooms%' AND min as '%$price%' AND max as '%$price%' ");
$rs_result = mysql_query ($sql);
$num_rows = mysql_num_rows($rs_result);
$query = mysql_query("SELECT * FROM subscribers2 WHERE type LIKE '%$type%' AND address LIKE '%$address%' AND bedrooms LIKE '%$bedrooms%' AND min as '%$price%' AND max as '%$price%' ");
$number=mysql_num_rows($query);
?>