Código PHP:
<?
$res= mysql_query=("Select * from user");
echo "<table>";
while($row = mysql_fetch_array($res))
{
echo "<tr>"
echo"<td>".$row[nombre]."</td>";
echo"<td>".$row[apellidos]."</td>"
echo"<td>".$row[mail]."</td>"
echo "<tr>";
}
echo"</table>";
?>