This question already has an answer here:
// I'm just testing out to display data from database but i keep getting this error :( anyone help?
<?php
include 'Connect.php';
?>
<?php
//query the database
$query = mysql_query("SELECT * FROM people ");
mysql_select_db("roofandfacade");
//fetch the results/convert results into array
While ($rows= mysql_fetch_array($query)) {
echo $rows['Person_Name'];
}
?>
</div>