Ver Mensaje Individual
  #9 (permalink)  
Antiguo 08/01/2014, 10:24
rakshaka
 
Fecha de Ingreso: mayo-2009
Mensajes: 166
Antigüedad: 15 años
Puntos: 2
Respuesta: Problema con MATCH AGAIST

Con este:

Código PHP:
SELECT *, MATCH (cupon_titulocupon_descripcionAGAINST ('" . $busqueda . "' IN BOOLEAN MODE) AS coincidencias FROM cupones AND MATCH (cupon_titulocupon_descripcionAGAINST ('" . $busqueda . "' IN BOOLEAN MODEORDER BY coincidencias DESC 
Obviamente cambiando los parámetros de $busqueda

El phpmyadmin me tira:

#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'AND MATCH (cupon_titulo, cupon_descripcion) AGAINST ('asd a' IN BOOLEAN MODE) OR' at line 1