Ver Mensaje Individual
  #11 (permalink)  
Antiguo 27/05/2008, 06:42
dobeto
 
Fecha de Ingreso: diciembre-2003
Ubicación: Salamanca
Mensajes: 123
Antigüedad: 20 años, 4 meses
Puntos: 3
Respuesta: Q tengo malo?

¿Has probado ha inciar la parte en PHP con
Código PHP:
<?php
en lugar de
Código PHP:
<?
Cita:
<?
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/pdf.jpg" width="26" height="29" border="0" />
<? } ?></a>
Yo simplificaría


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

Última edición por dobeto; 27/05/2008 a las 07:19 Razón: Añadir texto