Ver Mensaje Individual
  #12 (permalink)  
Antiguo 18/03/2008, 15:31
Avatar de Carlojas
Carlojas
 
Fecha de Ingreso: junio-2007
Ubicación: Shikasta
Mensajes: 1.272
Antigüedad: 16 años, 10 meses
Puntos: 49
Re: Reemplazo de campos vacios

uhmmm prueba así:

Código PHP:
<tr><td width="156" rowspan="8"><div align="center"> 
<p> 
<? 
while ($temp mysql_fetch_array($sql))  
{  
if (empty(
$temp["imagen"]) || is_null($temp["imagen"]))  
$img "http://www.forosdelweb.com/images/na.jpg";}  
else  
$img $temp["imagen"];}    

echo 
'<img src ="$img" border="0"/>'?> 
</p>         
</div> 
</td></tr>
Se supone que $temp["imagen"] tiene la ruta a tu archivo de imagen

Saludos.