Do you know you can earn heaps of $$ by answering questions on kodlogs, for more info contact us through feedback link at footer? We are Australian based web site and pay you for answering questions

  • Register
Welcome to Kodlogs Q&A, where you can ask programming questions and receive answers from other members of the community. For programmers, by programmers Kodlogs is an open community for anyone that does coding. We help you get answers to your toughest coding questions, share knowledge with your coworkers in private, and find your next IT dream job.
+1 vote
6 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 (8.8k points)  
...