una consulta mysql dentro de un while
(Nivel 2 - 47 posts) |
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 |
