1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
| <?php
if (isset($_POST['textTT']))
{
$textTT=mysql_real_escape_string(htmlentities($_POST['textTT']));
if (!empty($textTT))
$donnee=explode(' ',$textTT);
$searchTT=mysql_query("SELECT * from article WHERE nom LIKE '% " . $donnee[0] ."%' AND prix >= ". $donnee[1] );
$result_count=mysql_num_rows($searchTT);
echo '<center><strong><p> votre resultat de recherche for
<font color="red">' , $textTT , '</font> retourn
<font color="red">' , $result_count , '</font> </p></strong></center>';
while ($row=mysql_fetch_assoc($searchTT))
{
echo '<hr/><p><strong> ', $row['nom'],' </strong><br/> ',$row['desc_article'],'<br/><br/><span style="float:right;margin-top:-20px ;">Le Prix :'.$row['prix'].'Dhs</span></p><hr/>';
}
} }
?> |
Partager