le di.. buscar la ´palabra hotel y me mostr+o esto
SELECT hoteles.descripcion, hoteles.titulo, rest.descripcion, rest.titulo, pecuaria.descripcion, pecuaria.titulo, nautica.descripcion, nautica.titulo, embarcaderos.descripcion, embarcaderos.titulo, eventos.descripcion, eventos.titulo, emergencias.descripcion, emergencias.titulo, clasificados.descripcion, clasificados.titulo FROM hoteles, rest, pecuaria, nautica, embarcaderos, eventos, emergencias, clasificados WHERE hoteles.descripcion LIKE '%hotel%' OR hoteles.titulo LIKE '%hotel%' OR rest.descripcion LIKE '%hotel%' OR rest.titulo LIKE '%hotel%' OR pecuaria.descripcion LIKE '%hotel%' OR pecuaria.titulo LIKE '%hotel%' OR nautica.descripcion LIKE '%hotel%' OR nautica.titulo LIKE '%hotel%' OR embarcaderos.descripcion LIKE '%hotel%' OR embarcaderos.titulo LIKE '%hotel%' OR eventos.descripcion LIKE '%hotel%' OR eventos.titulo LIKE '%hotel%' OR emergencias.descripcion LIKE '%hotel%' OR emergencias.titulo LIKE '%hotel%' OR clasificados.descripcion LIKE '%hotel%' OR clasificados.titulo LIKE '%hotel%' LIMIT 50
o sea que mi error esta al llamar los datos???
Código PHP:
<?php While($row=mysql_fetch_object($result)) {
//muestras resultados
$descripcion=$row->descripcion;
$titulo=$row->titulo;
echo $descripcion." - ".$titulo."<br>";
}
?>