Ver Mensaje Individual
  #1 (permalink)  
Antiguo 24/03/2009, 15:08
majony
(Desactivado)
 
Fecha de Ingreso: diciembre-2008
Mensajes: 421
Antigüedad: 15 años, 4 meses
Puntos: 0
Pregunta No entiendo por que ?

Esta es mi tabla noticias
Código sql:
Ver original
  1. CREATE TABLE IF NOT EXISTS `noticias` (
  2.   `noticia_ID` INT(11) NOT NULL AUTO_INCREMENT,
  3.   `noticiaTitulo` VARCHAR(200) NOT NULL,
  4.   `noticiaNoticia` text NOT NULL,
  5.   `club` VARCHAR(200) NOT NULL,
  6.   PRIMARY KEY  (`noticia_ID`),
  7.   FULLTEXT KEY `buscador` (`noticiaTitulo`,`noticiaNoticia`,`club`)
  8. ) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=4 ;


Ahora en mi script esta es mi query

Código sql:
Ver original
  1. SELECT noticiaTitulo, noticiaNoticia,club
  2.                               MATCH (noticiaTitulo, noticiaNoticia,club)
  3.                               AGAINST ('$frase' IN BOOLEAN MODE) AS coincidencias
  4.                               FROM noticias
  5.                               WHERE MATCH (noticiaTitulo, noticiaNoticia,club)
  6.                               AGAINST ('$frase' IN BOOLEAN MODE)
  7.                               ORDER BY coincidencias DESC
El siguiente error es este
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 'MATCH (noticiaTitulo, noticiaNoticia,club) AGAINS' at line 2
Y no a q se debe

Última edición por GatorV; 24/03/2009 a las 15:52