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?