1 pièce(s) jointe(s)
Création de cellule d'un tableau php
Bonjour j'ai un petit souci, j'ai réaliser un tableau avec (phpmyadmin) tout va bien mais au lien d'avoir un td j'en ai deux donc entre chaque champs emporter depuis la base, il y a une cellule vide code et photo démonstratif
Code:
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
| <center>
<div class="tableauentier">
<div>
<div class="scroller" table bgcolor="#FFFFFF">
<table border="1">
<thead class="colonne">
<tr>
<th class="fixe_t">Operateur<th>
<th class="fixe_t">SIM<th>
<th class="fixe_t">PUK<th>
<th class="fixe_t">Num ligne<th>
<th class="fixe_t">Volume<th>
<th class="fixe_t">Statut abo<th><br>
</tr>
</thead>
<tbody></div><br>
<?php
echo "<br>";
if(!empty($resultats)){
foreach ($resultats as $row) {
// echo "<div class="colonne"">;
// echo <div class="tableauscroll">;
echo "<tr>";
echo "<td>".$row["Operateur"]."<td>";
echo "<td>".$row["Num SIM"]."<td>";
echo "<td>".$row["PUK"]."<td>";
echo "<td>".$row["Num ligne"]."<td>";
echo "<td>".$row["Volume"]."<td>";
echo "<td>".$row["Statut abo"]."<td>";
echo "</tr>";
}
}else {
echo "Pas d'enregistrements dans cette table...";
}
?> |
Pièce jointe 223428
merci d'avance cordialement