Ver Mensaje Individual
  #4 (permalink)  
Antiguo 29/09/2015, 18:19
Avatar de xfxstudios
xfxstudios
 
Fecha de Ingreso: junio-2015
Ubicación: Valencia - Venezuela
Mensajes: 2.448
Antigüedad: 8 años, 10 meses
Puntos: 263
Respuesta: If condicional no me funciona

si mal no entiendo lo que te intentan decir seri algo asi, claro esta seria mo propia modificacion, es decir, yo lo haria asi:

Código PHP:
Ver original
  1. <?php
  2. if($row["fecha_desfijacion"] >= $fecha_actual){
  3.     $enalce = "<a href=".$row["url"]." target= '_blank' ><img src='botonpdf.png' width='32' height='32'></a>";
  4. } else {
  5.     $enlace = "Desfijad";
  6. }
  7.  
  8. print"<tr class=off onMouseOver=this.className='on' onMouseOut=this.className='off'>
  9.  <td><center>
  10.  <a href= ".$row["url"]." target= '_blank' >".$row["comparendo"]."</a>    
  11.  </center></td>
  12.  <td><center><a href= ".$row["url"]." target= '_blank' >".$row["fecha_fijacion"]."</a>
  13.  </center></td>
  14.  <td><center><a href= ".$row["url"]." target= '_blank' >".$row["fecha_desfijacion"]."</a></center></td>
  15.  <td><center>".$enlace."</center></td>
  16.  </tr>";
  17. while($row=mysql_fetch_array($consulta));
  18. print"</table></center>";  
  19. ?>
__________________
[email protected]
HITCEL