Ver Mensaje Individual
  #7 (permalink)  
Antiguo 19/04/2010, 14:30
Avatar de darkasecas
darkasecas
 
Fecha de Ingreso: marzo-2005
Ubicación: SantaCata, NL, Mexico
Mensajes: 1.553
Antigüedad: 19 años, 1 mes
Puntos: 77
Respuesta: 1=(mezclar divs y tablas) 2=(imagen por defecto)

Cita:
Iniciado por etisdemian Ver Mensaje
Código PHP:
Ver original
  1. <?php
  2.    
  3.      $path_imagen='<img src ="../prd/<?php echo $row[0];?>" width="120" height="125">';
  4.      $nopath='<img src ="../prd/header_r1_c1.jpg" width="120" height="125">';
  5.      if (file_exists($path_imagen)){
  6. echo $path_imagen;
  7. } else {
  8. echo $nopath;
  9. }  
  10. ?>

este codigo no muestra el default XD.
A file_exists() necesitas pasarle una ruta, y tu le estas pasando codigo html.