I'm trying to display info from all the users in the data base and it keeps giving me this error
Warning: mysql_fetch_assoc() expects parameter 1 to be resource, string given in /home/killerdu/public_html/userlist.php on line 30
Line 30
while($people=mysql_fetch_assoc($people_list)){
<?php
include 'core/int.php';
include 'includes/head.php';
include 'head.php';
include 'includes/body.php';
include 'body.php';
$people_list="SELECT * FROM users";
$people=mysql_query($people_list);
?>
<html>
<head>
</head>
<body>
<pre>
<table class="table table-bordered">
<thead>
<tr>
<th>ID</th>
<th>Username</th>
<th>Email</th>
</tr>
<?php
while($people=mysql_fetch_assoc($people_list)){
echo "<tr>";
echo "<td>". $people_list['user_id']."</td>";
echo "<td>". $people_list['username']."</td>";
echo "<td>". $people_list['email']."</td>";
echo "</tr>";
}
?>
</thead>
</pre>
</body>
</html>