Ver Mensaje Individual
  #41 (permalink)  
Antiguo 04/05/2007, 09:11
Avatar de el cirujano
el cirujano
 
Fecha de Ingreso: mayo-2003
Ubicación: Frente al PC
Mensajes: 609
Antigüedad: 21 años, 9 meses
Puntos: 3
Re: Problemas con buscador

Código PHP:
$busqueda="wall decor";
  
$trozos=explode(" ",$busqueda);
  
$numero=count($trozos);
  if (
$numero=="1") {
$cadbusca="SELECT * FROM rugs_carpets WHERE subcategory LIKE '%$busqueda%' OR products LIKE '%$busqueda%' LIMIT 50";
  } else {
    
$cadbusca="SELECT *  FROM `rugs_carpets` WHERE MATCH(products) AGAINST ('".$busqueda."') or MATCH(products) AGAINST ('".$busqueda."') ORDER BY Score DESC LIMIT 50";
  }
echo 
$cadbusca;
$result=mysql_query($cadbusca); 
while(
$row=mysql_fetch_array($result)){
    
$referencia=$row[id];
    
$titulo=$row[subcategory];
    echo 
$referencia." - ".$titulo."<br>";
  } 
de verdad si no te funciona ahorita me pego un tiro (lirteralmente hablando) a mi me correo total y absolutamente bien...
__________________
CSS2 + AJAX + PHP + MySQL, una mezcla sin competencia!!!!!!