Ver Mensaje Individual
  #9 (permalink)  
Antiguo 22/02/2013, 11:46
claudinho
 
Fecha de Ingreso: febrero-2013
Ubicación: Margarita
Mensajes: 72
Antigüedad: 11 años, 2 meses
Puntos: 0
Respuesta: Mostrar imagenes

Increible!!! funciono!!

quite la linea
Código PHP:
$datos mysql_fetch_assoc($query); 
    
$id_inmueble $datos['id_inmueble']; 
y luego coloque del ciclo while
Código PHP:
 $id_inmueble $datos['id_inmueble']; 
quedo asi
Código PHP:
    while($datos mysql_fetch_assoc($query))

    {
$id_inmueble $datos['id_inmueble'];
$query3 mysql_query("SELECT * FROM fotos2 INNER JOIN inmuebles_fotos ON fotos2.id_foto = inmuebles_fotos.id_foto WHERE inmuebles_fotos.id_inmueble=$id_inmueble") or die ("Error en query3");
$datos3 mysql_fetch_array($query3);
$image_path $datos3['path']; 

      print 
'<tr>
    <td width="236" rowspan="7"><div align="center"><a href="Prueba2.php?id='
.$datos['id_inmueble'].'"><img src="http://www.forosdelweb.com/f18/'.$image_path.'" width="200" height="120" alt=""></a></div></td>
    <td width="18" rowspan="8"><div align="center"></div></td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td><div align="left">'
.$datos['tipo'].' en '.$datos['operacion'].'</div></td>
  </tr>
  <tr>
    <td><div align="left">'
.$datos['ubicacion'].'</div></td>
  </tr>
  <tr>
    <td width="434"><div align="left">'
.$datos['mts2'].' mts2</div></td>
  </tr>
  <tr>
    <td><div align="left" class="Estilo1"> BsF '
.$datos['precio'].'</div></td>
  </tr>
  <tr>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td width="236">&nbsp;</td>
    <td><div align="right"></div></td>
  </tr>'
;    
    }
print 
'</table>';    
print 
'<br>';    
print 
'<br>'
Muhas Gracias por tu ayuda!!!!!