- Topic: php --> Lang:en --> 23 days ago
Warning: mysqli_fetch_assoc() expects parameter 1 to be mysqli_result, boolean given
I'm getting a 'Warning: mysqli_fetch_assoc() expects parameter 1 to be mysqli_result' error. How do I fix it? The error occurs in the following code: <?php $result = mysqli_query($conn, "SELECT * FROM table"); while ($row = mysqli_fetch_assoc($result)) { } ?>
×
×