1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
|
}else if(!empty($_GET['chien']) && !empty($_GET['aff']) && empty($_GET['lof']) && empty($_GET['nomaff']){
$result = mysql_query("SELECT LOF, NOM, AFF, SEX, DNAIS, TRES, RADC, NRADC, RADH, NRADH, PUC, TAT, MLOF, PLOF FROM Chien WHERE CONCAT (NOM,' ',AFF) like '$nomaff' ;");
$nombreLignes = mysql_num_rows($result);
$nombreColonnes = mysql_num_fields($result);
echo "<table>";
echo "<thead>";
echo "<th>Lof</th>";
echo "<th>Nom</th>";
echo "<th>Affixe</th>";
echo "<th>Tatouage / Puce </th>";
echo "<th>Généalogie</th>";
echo "</thead>";
echo "<tbody>";
for($i = 0; $i < $nombreLignes; $i++){
echo "<tr>";
echo "<td>".mysql_result($result, $i, 0)."</td>";
echo "<td>".mysql_result($result, $i, 1)."</td>";
echo "<td>".mysql_result($result, $i, 2)."</td>";
echo "<td>".mysql_result($result, $i, 10).mysql_result($result, $i, 11)."</td>";
echo "<td><a href='http://*******/absolu?chien=&tat=&lof=".mysql_result($result, $i, 0)."'>Voir ce chien</a></td>";
echo "</tr>\n";
} |
Partager