Ver Mensaje Individual
  #1 (permalink)  
Antiguo 11/03/2008, 15:42
Avatar de bandolera_triste
bandolera_triste
 
Fecha de Ingreso: noviembre-2007
Mensajes: 136
Antigüedad: 16 años, 5 meses
Puntos: 0
consulta mysql dentro de un while

while ($datos=mysql_fetch_array($res))
{
$query2 = "SELECT * from imagen where id_v=$datos[0]";
$res2=mysql_query($query2);
$datos2=mysql_fetch_array($res2);

echo "
<tr>
<td>
fotos<BR>
SOLICITELA CON ESTA CLAVE $datos[28]<BR>
SOLICITELA CON ESTA CLAVE .$datos2[0].<BR>
</td>
<td>
SOLICITELA CON ESTA CLAVE .$datos[0].<BR>
NOMBRE DE LA VIVIENDA:.$datos[1].<BR>
TIPO DE VIVIENDA:.$datos[2].<BR>
LUGAR:.$datos[5].<BR>
TAMAÑO DE LA PROPIEDAD: .$datos[6].<BR>
PRECIO X ESTANCIA:.$datos[7].<BR>
</td></tr>
";

}
no me funciona