1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40
| <?php
include_once 'connexion_BDD.php';
$bdd=connexion_bdd();
//selectionne tout dans la table devis
$requete = "SELECT * FROM devis WHERE 1;";
$req_execute = mysqli_query($bdd, $requete);
$lignes = mysqli_num_rows($req_execute);//nb ligne 4
$valeurs = mysqli_fetch_assoc($req_execute);
$i=0;
echo "<table border=1>
<thead>
<tr>
<th>id</th>
<th>nom</th>
<th>type</th>
<th>valeur</th>
<th>commentaire</th>
<th>lien</th>
</tr>
</thead>
<tbody>";
while ($valeurs && $i != $lignes)
{
echo "<tr>";
echo "<td>" . $valeurs['id'] . "</td>";
echo "<td>" . $valeurs['nom'] . "</td>";
echo "<td>" . $valeurs['type'] . "</td>";
echo "<td>" . $valeurs['valeur'] . "</td>";
echo "<td>" . $valeurs['commentaire'] . "</td>";
echo "<td>" . $valeurs['lien'] . "</td>";
echo "</tr>";
$i++;
}
echo "</tbody>";
echo "</table>";
?> |