Catchable fatal error: Object of class mysqli_result could not be converted to string in C:\\xampp\\htdocs\\xxx\\dash.php on line 20
I a
if ($result = $mysqli->query($query)) { while($row = $result->fetch_object()) { echo row['column_name']; } } $result->close();
where you see 'column_name put the name of the column you want to get the string from.