Search Posts

Author: vin

Warning: mysqli_num_rows() expects parameter 1 to be mysqli_result, boolean given in C:xampphtdocsvinaydatabase.php on line 22 [duplicate]

This question already has an answer here: PHP & MySQL: mysqli_num_rows() expects parameter 1 to be mysqli_result, boolean given [duplicate] 2 answers $sql=”SELECT * FROM vinay;”; $result=mysqli_query($conn,$sql); $resultCheck=mysqli_num_rows($result); if($resultCheck>o) { while($row=mysqli_fetch_assoc($result)) { echo $row[0]; } } Source: Stackoverflow