Hello i have a small database and i want to be able to create a page where it will list every single entry in that database.
How can i do this?
I've tried this:
$res=mysql_query("SELECT * FROM engr_users");
if(mysql_num_rows($res)==0){
echo "There is no data in the table";
}
else{
$row=mysql_fetch_assoc($res);
echo "ID : $row[username] Name : $row[name] Email : $row[uic]";
}
but that only gives me the first entry, how can i get the others?
thanks