Hey everyone,
I know it will be easy for you to answer this question ! Sorry, but I really need some help. What I am trying to do is simple. A table in html with 4 different columns. Then, in each corresponding column, the php request should... But if you guys try it, nothing shows, even the table in html!
Thanks a lot
Antoine
-= PHP Part=-
</head>
<body>
error_reporting(E_ALL);
<?php
error_reporting(E_ALL);
include "basedonner.inc"
$tab=$db->getTableElement("select * from user order by nom");
$sql = 'SELECT * FROM `user` LIMIT 0, 30 ';
echo "<table border='1'>
<tr>
<th>id user</th>
<th>nom</th>
<th>cpe</th>
<th>e-mail</th>
</tr>";
foreach($tab as $donnee)
{
echo "<tr>";
echo "<td>" . $donnee['id_user'] . "</td>";
echo "<td>" . $donnee['nom'] . "</td>";
echo "<td>" . $donnee['id_cpe'] . "</td>";
echo "<td>" . $donnee['courriel'] . "</td>";
echo "</tr>";
}
echo "</table>";
?>
</body>
</html>