Warning: mysqli_fetch_object() expects parameter 1 to be mysqli_result, boolean given in /public_html/header.php on line 35
In the header.php, Connect to database:
$connect=mysqli_connect("localhost","$db_name","$password")
$sql_logo="SELECT * FROM `logo`";
$query_logo=mysqli_query($connect,$sql_logo);
On line 35:
<?php
while($result=mysqli_fetch_object($query_logo)){
?>
<a href="/"><img src="res/img/<?php echo $result->logo_img?>"></a>
<?php } ?>
in my database:
the table name is logo
and the column name is logo_img
.
I don't know what happens, because when I try in XAMPP it's work using that's code.