碼-$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()期望參數(shù)1為資源,第13行的C:\ xampp \ htdocs \ shizin \ voting.php中給出的對象how to check result is empty?
添加回答
舉報
0/150
提交
取消