Ver Mensaje Individual
  #3 (permalink)  
Antiguo 04/03/2013, 20:03
Avatar de T4ke0veR
T4ke0veR
 
Fecha de Ingreso: agosto-2007
Ubicación: Quito - Ecuador
Mensajes: 1.720
Antigüedad: 16 años, 8 meses
Puntos: 28
Respuesta: Consulta multiple para buscador

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>"
   } 
?>
__________________
Diseño gráfico, Web, imagen corporativa, publicidad ...