SyntaxFix
Write A Post
Hire A Developer
Questions
Please use if condition with while loop and try.
eg.
if ($result = $conn->query($query)) { /* fetch associative array */ while ($row = $result->fetch_assoc()) { } /* free result set */ $result->free(); }