
03/02/2010, 01:42
|
Colaborador | | Fecha de Ingreso: marzo-2008 Ubicación: Cáceres
Mensajes: 3.735
Antigüedad: 16 años, 10 meses Puntos: 300 | |
Respuesta: Consulta con LIKE Tu problema son los paréntesis
SELECT * FROM objetos WHERE estado='r' AND (NOMBRE LIKE '%$busqueda%' OR DESCRIPCION LIKE '%$busqueda%') LIMIT 25;
SELECT * , MATCH ( NOMBRE, DESCRIPCION ) AGAINST ( '$busqueda' ) AS Score FROM inventario WHERE estado='r' AND MATCH ( NOMBRE, DESCRIPCION ) AGAINST ( '$busqueda' ) ORDER BY Score DESC LIMIT 50; |