Tema: preguntonta
Ver Mensaje Individual
  #4 (permalink)  
Antiguo 21/02/2003, 15:05
Avatar de Chuty
Chuty
 
Fecha de Ingreso: noviembre-2002
Ubicación: el bar de la esquina
Mensajes: 609
Antigüedad: 21 años, 5 meses
Puntos: 2
Gracias por la respuesta pero en ventana.php como pregunto si existe o no la imagen este es mi codigo
<?php
$id = "$NUM_FIR";
$FileErr = "C:\Inetpub\wwwroot\phptest\funcionarios\error.png ";

$StringQuery = "select * from mitabla_cliente where cql_recno=$id";
$ConnectServerID = odbc_connect( $ServerName, sa, sa);

if( $ConnectServerID ) {

$ResultQueryID = odbc_do( $ConnectServerID, $StringQuery);

if( $ResultQueryID > 0 ) {
$datrec = odbc_result( $ResultQueryID, "dat_rec");
// header("Content-type: image/png");
echo $datrec;
}

odbc_free_result( $ResultQueryID );
odbc_close( $ConnectServerID );
}
?>

Salu2