Tema: titulos
Ver Mensaje Individual
  #7 (permalink)  
Antiguo 07/02/2009, 12:45
Avatar de ElJavista
ElJavista
Colaborador
 
Fecha de Ingreso: marzo-2007
Ubicación: Lima Perú
Mensajes: 2.231
Antigüedad: 18 años, 1 mes
Puntos: 67
Respuesta: titulos

Bueno, este sería el código, nota que hay pocos cambios.

Código PHP:
<?php require_once('Connections/tafusas.php'); ?>
<?php
mysql_select_db
($database_tafusas$tafusas);
$query_Recordset1 "SELECT * FROM noticias";
$Recordset1 mysql_query($query_Recordset1$tafusas) or die(mysql_error());
$row_Recordset1 mysql_fetch_assoc($Recordset1);
$totalRows_Recordset1 mysql_num_rows($Recordset1);
?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Documento sin t&iacute;tulo</title>
</head>

<body>
<p><a></a></p>
<table width="782" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <th scope="col">nombre</th>
    <th scope="col">fecha</th>
    <th scope="col">foto</th>
    <th scope="col">descripcion</th>
  </tr>
  <?php
      $n 
0;
       do { 
  
?>
    <tr>
      <th scope="row"><?php echo $row_Recordset1['nombre']; ?></th>
      <?php 
          
if ($n 10) {                 /* 10 = número de artículos vistos */
      
<td><?php echo $row_Recordset1['fecha']; ?></td>
      <td><?php echo $row_Recordset1['url_foto']; ?></td>
      <td><?php echo $row_Recordset1['descripcion']; ?></td>
      <?php
         
}
      
?>
    </tr>
    <?php 
        $n 
++;
        } while (
$row_Recordset1 mysql_fetch_assoc($Recordset1)); 
    
?>
</table>
<p><a></a></p>
<div align="center"></div>
</body>
</html>
<?php
mysql_free_result
($Recordset1);
?>
Espero que te sirva.