![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
16/02/2007, 22:10
|
![Avatar de dopon](http://static.forosdelweb.com/customavatars/avatar108680_1.gif) | | | Fecha de Ingreso: julio-2005 Ubicación: Cucuta / Colombia
Mensajes: 493
Antigüedad: 19 años, 6 meses Puntos: 1 | |
Re: IF Mostrar si hay imagen. Espero te sirva ;) Código PHP: <? include('conexion.php'); $id = $_GET["id"]; $sql = "SELECT * FROM relatos WHERE id='$id'"; $result=mysql_query($sql); while($rows=mysql_fetch_array($result)){ if($rows['foto']) echo "<a href='javascript:popUp('".$rows['foto']."')'><img src='relatosthumb.php?imagen=".$rows['foto']."'></a>"; ?> |