Ver Mensaje Individual
  #3 (permalink)  
Antiguo 30/07/2005, 02:40
Avatar de Onelx
Onelx
 
Fecha de Ingreso: julio-2005
Ubicación: Argentino en Velencia (Es
Mensajes: 14
Antigüedad: 18 años, 9 meses
Puntos: 0
Nicolaspar gracias por tu interes.
el codigo de ver.php:
<?php

include("datos.php");
$id=$_GET["id"];
$MainSQL="SELECT * FROM foto where (idfoto=$id)";
mysql_connect($servidor,$name_db,$clave);
mysql_select_db($db);

$res = mysql_query($MainSQL);
$row=mysql_fetch_array($res);
$data = $row["dato"];
$tipo = $row["tipo"];
header("Content-Type: ". $tipo ."\n");
header("Content-Transfer-Encoding: binary\n");
header("Content-length: " . strlen($data) . "\n");
print $data;

?>