Ver Mensaje Individual
  #4 (permalink)  
Antiguo 03/12/2004, 16:33
Avatar de pereztroff
pereztroff
 
Fecha de Ingreso: junio-2002
Ubicación: En la Internet.
Mensajes: 4.068
Antigüedad: 24 años, 3 meses
Puntos: 5
Pongo todo el codigo php antes de enviar el valor id=1 por ejemplo
Código PHP:
<?
    
if (!($desde)) { $desde = 0; };
    include(
'../inc/conexion.php');
    
$select_todas = mysql_query("SELECT id FROM noticias ORDER BY id DESC");
    
$cantidad = mysql_num_rows($select_todas);
    
$select_notas = mysql_query("SELECT * FROM noticias ORDER BY id DESC LIMIT $desde, 51");
    
    for (
$x = 1; $x <= 50; $x++) {
        
$nota = mysql_fetch_array($select_notas);
        if (
$nota[titulo]!='') {
?>

    <tr valign="top"> 
      <td><font face="Verdana, Arial, Helvetica, sans-serif" size="1"> <?php echo $nota[titulo]; ?> 
        </font></td>
      <td width="200"><font face="Verdana, Arial, Helvetica, sans-serif" size="1"> 
        <?php echo $nota[autor]; ?> </font></td>
      <td width="77"> <font face="Verdana, Arial, Helvetica, sans-serif" size="1"> 
        <?php echo $nota[fecha]; ?> &nbsp;</font></td>
      <td width="44" align="center" bgcolor="#FFE295"> <a href="editar.php?id_nota=<? echo($nota[id]); ?>"><font face="Verdana, Arial, Helvetica, sans-serif" size="1">Editar</font></a></td>
      
    </tr>
<?
    
}; 
        };
?>