![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
17/07/2008, 10:28
|
![Avatar de Carlojas](http://static.forosdelweb.com/customavatars/avatar185210_1.gif) | | | Fecha de Ingreso: junio-2007 Ubicación: Shikasta
Mensajes: 1.272
Antigüedad: 17 años, 8 meses Puntos: 49 | |
Respuesta: Buscar en la base de datos Estas ejecutando mal tu consulta, debería ser así: Código PHP: $tag = $_POST['tag']; $query = mysql_query("SELECT * FROM noticias WHERE tag LIKE '%$tag%'") or die("Error en consulta:" .mysql_error() );
Aunque también te recomendaría utilizar MATCH AGAINST e Indices FULLTEXT
Saludos. |