Ver Mensaje Individual
  #22 (permalink)  
Antiguo 03/12/2007, 17:32
marcodoming
 
Fecha de Ingreso: noviembre-2007
Mensajes: 18
Antigüedad: 16 años, 5 meses
Puntos: 0
Re: problema con seleccionar id

tenias razón GatorV, ya me selecciona el id, he hecho una tabla en la ficha del producto pero no me da los resultados, solo me sale el dibujo de la tabla y la x de las imagenes
<?php
mysql_connect("l", "", "") or
die("no se pudo conectar " . mysql_error());
mysql_select_db("mibase");

$id = $_GET['id'];
$rst = mysql_query("SELECT * FROM propiedades WHERE id = $id");
while ($row = mysql_fetch_array($rst,MYSQL_NUM)) {
?>
<table width="497" height="376" border="1">
<tr>
<td>&nbsp;</td>
<td rowspan="2"><img src="<?php echo $row['foto1'];?>" border="0" width="150"></td>
</tr>
<tr>
<td>&nbsp;</td>
</tr>
<tr>
<td>&nbsp;</td>
<td rowspan="2"><img src="<?php echo $row['foto2'];?>"></td>
</tr>
<tr>
<td>&nbsp;</td>
</tr>
<tr>
<td>&nbsp;</td>
<td rowspan="2"><img src="<?php echo $row['foto3'];?>"></td>
</tr>
<tr>
<td>&nbsp;</td>
</tr>
<tr>
<td>&nbsp;</td>
<td rowspan="2"><img src="<?php echo $row['foto4'];?>"></td>
</tr>
<tr>
<td>&nbsp;</td>
</tr>
</table>
<?php
}
?>