• Register
Welcome to Kodlogs, programming questions and answer website.
+1 vote
74 views

This error pop ups for  user panel data.  

The code i am facing issue is in:

while( $row = mysqli_fetch_assoc( $result ) ){
Do i have issue with sql query ?  error is "Warning: mysqli_fetch_assoc() expects parameter 1 to be mysqli_result, boolean given". someone suggest please
by (390 points)  

1 Answer

0 votes

Instead of 

while($e=mysqli_fetch_assoc($result)){
try following code you should be 
while($e = $result->fetch_assoc()){
by (9.7k points)  
...