Ver Mensaje Individual
  #8 (permalink)  
Antiguo 17/02/2003, 13:40
fran86
 
Fecha de Ingreso: agosto-2002
Ubicación: Colón - Entre Rios - Argentina
Mensajes: 647
Antigüedad: 21 años, 8 meses
Puntos: 8
Podrias haces una condicion con file_exists();
Quedaria +o - asi:
Código PHP:
<?php
$dni 
$row["DNI"];
if (
file_exists("archivos/$dni.jpg")) {
   
$imagen "archivos/$dni.jpg";
} else {
   
$imagen "archivos/otraimagen.jpg";
}
?>

<img name="" src="<?= $imagen ?>" width="96"
height="108" alt="Fotografía" style="background-color:
#666666">
Mas info en...
http://www.php.net/manual/es/function.file-exists.php