 
			
				30/10/2004, 08:02
			
			
			     |  
        |     |    |    Fecha de Ingreso: septiembre-2004  
						Mensajes: 468
					  Antigüedad: 21 años, 1 mes Puntos: 1     |        |  
  |      Primero tienes que enlazar tu base de datos para que hagas tu consulta. y lo recoges en un array.   
Archivo Config.php 
<?php 
$dbhost = "localhost" ; 
$dbuser = "root" ; 
//$dbpass = "contraseña" ; 
$db = "usuarios" ; 
$conectar = mysql_connect($dbhost,$dbuser) ;  
mysql_select_db($db,$conectar) ; 
?>     
Consulta.php   
<?php 
//Conectamos con nuestra base de datos. 
include("config.php");   
$consulta1=mysql_query("SELECT id, desc1_noti, fecha_noti FROM noticias order by id ",$conectar);   
?> 
<table width="600" border="2" cellpadding="3" cellspacing="0"> 
		<?php  while($campos=mysql_fetch_array($consulta1)) 
		{ ?> 
          <tr> 
            <th width="103" bgcolor="#B6C4D4" scope="col"><span class="Estilo9"><?php echo $campos["fecha_noti"]; ?></span></th> 
            <th width="440" class="Estilo2" scope="col"><div align="left" class="Estilo10"><?php echo $campos["desc1_noti"]; ?> </div></th> 
            <th width="29" class="Estilo2" scope="col"><span class="Estilo10"><?php echo "<a href=\"noticia_puntual.php?cod=".$campos["id"]."\" >".'<img src="../Imagenes/boton_mas.jpg" width="9" height="9" border="0" alt="Mes Informació">'; ?></span></th> 
          </tr> 
		<?php }?> 
        </table>   
Eso es todo.   
Espero que te sirva.           |