اريد عمل بحت واطلب مساعدتكم : ادخل مجموعة كلمات من حقول مختلفة مع حدف {la,le,les}اده كانت وسط الجملة. مبتدئة في PHP
<?php
if (isset($_POST['textTT']))
{
$textTT=mysql_real_escape_string(htmlentities($_POST['textTT']));
if (!empty($textTT))
{
$donnee=explode(' ',$textTT);
$tab=array('la','le','au');
//$chaine=substr($textTT,0,$tab[0]);
$i=0;
$j=0;
for ($i=0;$i<sizeof($donnee); $i++)
{
for ($j=0;$j<sizeof($tab);$j++)
{
if ($donnee[$i]==$tab[$j])
{
$donnee[$i]=$donnee[$i+1];
unset($donnee[$i]);
$i=$i+1;
}
$searchTT=mysql_query("SELECT * from article WHERE nom LIKE '% " . $donnee ."%' AND prix >= ". $donnee ); $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/>';
}
}
}
}
}
?>