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 41 42 43 44 45 46 47 48 49 50 51
| <?php
$req_AND = mysql_query("select * from batiment where lieu='$lieu' and superficie='$superf' and prix='$prix'");
$nombre_de_resultat = mysql_num_rows($req_AND);
if($nombre_de_resultat == 0){
echo "<p align=center><font color=red size=+2>AUCUN RESULTAT NE CORRESPOND A VOTRE RECHERCHE!</font></p>";
}
else{
while($dnn_AND = mysql_fetch_array($req_AND)){
?>
<tr>
<td bgcolor="#CCCCCC"><?php echo($dnn_AND['id']); ?></td>
<td><?php echo htmlentities($dnn_AND['lieu'], ENT_QUOTES, 'UTF-8'); ?></td>
<td width="152"><?php echo htmlentities($dnn_AND['superficie'], ENT_QUOTES, 'UTF-8'); ?></td>
<td width="132"><?php echo htmlentities($dnn_AND['prix'], ENT_QUOTES, 'UTF-8'); ?></td>
<td bgcolor="#CCCCCC" width="152"><?php echo($dnn_AND['description']); ?></td>
</tr>
<?php
}
}
?>
<tr>
</table>
<BR/><BR/>
<HR/>
<p><font color="#006600" size="+2">Résultats qui pourraient vous interrésser...</font></p>
</table>
<table width="596" border="1" align="center">
<tr>
<td width="70" align="center" bgcolor="#FFFFFF">ID</td>
<td width="169" align="center" bgcolor="#FFFFFF">LIEU</td>
<td align="center" bgcolor="#FFFFFF">SUPERFICIE</td>
<td align="center" bgcolor="#FFFFFF">PRIX</td>
<td align="center" bgcolor="#FFFFFF">DESCRIPTION</td>
</tr>
<?php
$req = mysql_query("select * from batiment where lieu='$lieu' or superficie='$superf' or prix='$prix'");
while($dnn = mysql_fetch_array($req)){
?>
<tr>
<td bgcolor="#FFFFFF"><?php echo($dnn['id']); ?></td>
<td><?php echo htmlentities($dnn['lieu'], ENT_QUOTES, 'UTF-8'); ?></td>
<td width="152"><?php echo htmlentities($dnn['superficie'], ENT_QUOTES, 'UTF-8'); ?></td>
<td width="132"><?php echo htmlentities($dnn['prix'], ENT_QUOTES, 'UTF-8'); ?></td>
<td bgcolor="#CCCCCC" width="152"><?php echo($dnn['description']); ?></td>
</tr>
<?php
}
?> |
Partager