Ver Mensaje Individual
  #3 (permalink)  
Antiguo 28/07/2008, 22:09
Ruben_C
 
Fecha de Ingreso: febrero-2006
Mensajes: 217
Antigüedad: 18 años, 2 meses
Puntos: 0
Respuesta: No puedo con una condicion ¿o bucle?

Si tienes razon, no me supe explicar bien, mira, este es el bucle para extraer los datos
Código PHP:
<?php
$sql
=mysql_query("SELECT * FROM noticias_home ORDER BY id DESC",$con);
 while(
$row mysql_fetch_array($sql)){
   echo 
"<tr>";
   
   echo 
"<td valign=\"top\"><img src=\"".$row['imagenup']."\" width=\"100px\" height=\"100px\"</a></td>";//aqui si no esta la imagen quiero que se muestre un link "subir imagen" para subirla
   
echo "<td valign=\"top\">".htmlentities($row['titulo'])."</td>";
   echo 
"<td valign=\"top\">".htmlentities($row['fuente'])."</td>";
   echo 
"<td valign=\"top\">".nl2br(htmlentities($row['noticia']))."</td>";
   echo 
"</tr>";
  
   } 
?>
no se si se entiende mejor ahora