Really simple question but I can't seem to find a solution on here that works. I have a database with rows id, user, message and time. I currently only have one row, but I'd like to be able to print all rows.
$query = "SELECT * FROM 'wisp_posts'";
$result = mysqli_query($con, $query);
while ($row = mysqli_fetch_array($result)) {
echo $row['user'];
}
The error I get is:
Warning: mysqli_fetch_array() expects parameter 1 to be mysqli_result, boolean given
Which I know means that it's returning False.