![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
21/12/2004, 04:47
|
![Avatar de JuanKa](http://static.forosdelweb.com/customavatars/avatar73531_1.gif) | | | Fecha de Ingreso: septiembre-2004
Mensajes: 468
Antigüedad: 20 años, 4 meses Puntos: 1 | |
me Faltaba el codigo del VER_FOTO.php
<?php
include ('Php/Fotografias/config_fotografias.php');
//recojo las variables
$var_des=$_GET["de"];
$var_cod=$_GET["codi"];
//echo $var_des."<br>"; echo $var_cod."<br>"."<br>"."<br>";
$consulta=mysql_query("SELECT * FROM imagenes WHERE id=$var_cod",$conectar);
$var_d1=mysql_result($consulta,0,"des1");
$var_d2=mysql_result($consulta,0,"des2");
if ($var_d1 == $_GET["de"])
{ $con=mysql_query("SELECT * FROM imagenes WHERE des1='$var_d1' ",$conectar);
$var_tit=mysql_result($con,0,"titulo");
$var_ima=mysql_result($con,0,"ima1");
}
if ($var_d2 == $_GET["de"])
{ $con=mysql_query("SELECT * FROM imagenes WHERE des2='$var_d2' ",$conectar);
$var_tit=mysql_result($con,0,"titulo");
$var_ima=mysql_result($con,0,"ima2");
}
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title></title>
<link rel="stylesheet" type="text/css" href="template.css">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<body>
<table width="600" border="0" align="center" cellpadding="5" cellspacing="3">
<tr>
<th scope="col">
<table width="580" border="0" cellpadding="5" cellspacing="2" class="Middle">
<tr>
<th scope="col"><span class="Estilo1"><?php echo $var_tit;?></span></th>
</tr>
</table></th>
</tr>
<tr>
<td align="center" valign="middle"><div align="center">
<table width="210" height="210" border="1" cellpadding="5" cellspacing="2" bgcolor="#FFFFFF">
<tr>
<th scope="col"><?php echo "<img src=\"Archivos_Fotos/".$var_ima."\">"; ?></th>
</tr>
</table>
</div>
<div align="center"> </div></td>
</tr>
</table>
</body>
</html>
<?php
mysql_close($conectar);
?>
Gracias |