Possible Duplicate:
mysql_fetch_array() expects parameter 1 to be resource, boolean given in select경고 : mysql_num_rows도() 파라미터 1 자원이 될 것으로 기대하고, 코드 -
$q="SELECT * FROM tbl_quevote WHERE que_id = '".$qid."' and voteby='".$uid."'";
$result = $mysqli->query($q) or die(mysqli_error($mysqli));
$num_rows = mysql_num_rows($result);
echo $num_rows;
에러 : 경고 : mysql_num_rows도() 파라미터 1 C에 주어진 리소스 객체가 될 것으로 예상 : \ XAMPP \ htdocs를 \ shizin \ voting.php 라인 (13)
how to check result is empty?
+1 - 정답이지만 더 많은 정보를 제공하는 데 도움이됩니다. http://www.php.net/manual/en/mysqli-stmt.num-rows.php, num_rows는 mysqli 확장의 일부이고 mysql_num_rows는 다른 확장의 일부이다. –