Ver Mensaje Individual
  #1 (permalink)  
Antiguo 13/05/2008, 07:23
Avatar de T4ke0veR
T4ke0veR
 
Fecha de Ingreso: agosto-2007
Ubicación: Quito - Ecuador
Mensajes: 1.720
Antigüedad: 17 años, 6 meses
Puntos: 28
Problema con el IF

buenos dias comunidad,

en el desarrollo de una web me tope con este problemita...
el if no me imprime lo q deberia
se supone q si hay contenido me muestra una imagen y si no hay me muestra la otra... pero no se pq no me funciona...

Código PHP:
<?
if ($row_Recordset1['ficha']!="") {
?>
<a href="ficha/<?php echo $row_Recordset1['ficha']; ?>" target="_blank"><img src="images/pdf.jpg" width="26" height="29" border="0" /></a>

<?
}else{
?>

<a href="#"><img src="images/na.jpg" width="26" height="29" border="0" /></a>
<?}?>
<?
if ($row_Recordset1['ficha']!="") {
?>
<a href="ficha/<?php echo $row_Recordset1['ficha']; ?>" target="_blank"><img src="images/pdf.jpg" width="26" height="29" border="0" /></a>

<?
}else{
?>

<a href="#"><img src="images/na.jpg" width="26" height="29" border="0" /></a>
<?}?>
alguien sabe q podrá ser?
__________________
Diseño gráfico, Web, imagen corporativa, publicidad ...