Tema: titulos
Ver Mensaje Individual
  #6 (permalink)  
Antiguo 05/02/2009, 18:25
tafusas
 
Fecha de Ingreso: noviembre-2007
Mensajes: 21
Antigüedad: 16 años, 6 meses
Puntos: 0
Respuesta: titulos

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 do { ?>
    <tr>
      <th scope="row"><?php echo $row_Recordset1['nombre']; ?></th>
      <td><?php echo $row_Recordset1['fecha']; ?></td>
      <td><?php echo $row_Recordset1['url_foto']; ?></td>
      <td><?php echo $row_Recordset1['descripcion']; ?></td>
    </tr>
    <?php } while ($row_Recordset1 mysql_fetch_assoc($Recordset1)); ?>
</table>
<p><a></a></p>
<div align="center"></div>
</body>
</html>
<?php
mysql_free_result
($Recordset1);
?>