Vissza
Keresés: Pld: szerszám bit készlet, skoda lengés, lada fékbetét, opel egr szelep, szerszám
'; $kk = explode(' ', $_POST[keres]); $kdb = substr_count($_POST[keres]," "); if($_POST[keres]==""){ $leker = "select * from termekek limit 0, 300"; } else{ if($kdb==0){ $leker = "SELECT * FROM `termekek` WHERE `b` LIKE '%$kk[0]%' "; #$leker = "SELECT * FROM `termekek` WHERE `b` LIKE '%$_POST[keres]%' or `c` LIKE '%$_POST[keres]%' "; } if($kdb==1){ $leker = "SELECT * FROM `termekek` WHERE `b` LIKE '%$kk[0]%' and `b` LIKE '%$kk[1]%'"; #$leker = "SELECT * FROM `termekek` WHERE `b` LIKE '%$_POST[keres]%' or `c` LIKE '%$_POST[keres]%' "; #echo $leker; } if($kdb==2){ $leker = "SELECT * FROM `termekek` WHERE `b` LIKE '%$kk[0]%' and `b` LIKE '%$kk[1]%' and `b` LIKE '%$kk[2]%' "; #$leker = "SELECT * FROM `termekek` WHERE `b` LIKE '%$_POST[keres]%' or `c` LIKE '%$_POST[keres]%' "; } } #echo $leker; #echo $kdb; $lekerb = mysql_query($leker); echo ''; while ($lekerc = mysql_fetch_array($lekerb)){ echo ''; if($lekerc[6]!=""){ $h = strpos($lekerc[6],"|"); if($h>=1){ $l = explode('|', $lekerc[6]); echo ''; } if($h==0){ echo ''; } } else{ echo ''; } } echo '
'.$lekerc[b].'-'.$lekerc[c].'
'; ?>