This question already has an answer here:
here is my code , I could not find where's the problem!
<?php
include("dbc.php");
$result = mysqli_query($dbc,"SELECT * FROM employee");
while($row = mysqli_fetch_array($result))
{
echo $row['name'] . " " . $row['age']." ".$row['id'];
echo "<br>";
}
?>
</div>
mysqli_query
"Returns FALSE on failure."
Please double check whether $dbc
is really created and of expected type.