Tema: Novato PHP
Ver Mensaje Individual
  #15 (permalink)  
Antiguo 30/07/2003, 04:32
Avatar de tux
tux
Usuario no validado
 
Fecha de Ingreso: marzo-2003
Ubicación: Internet
Mensajes: 52
Antigüedad: 21 años, 1 mes
Puntos: 0
Aca les mando todo el codigo

<?
// begin Recordset
$colname__noticias = '1';
if (isset($HTTP_GET_VARS['date'])) {
$colname__noticias = $HTTP_GET_VARS['date'];
}
$query_noticias = sprintf("SELECT * FROM noticias WHERE Fecha = '%s' ORDER BY Fecha DESC", $colname__noticias);
$noticias = $pruebas->SelectLimit($query_noticias) or die($pruebas->ErrorMsg());
$totalRows_noticias = $noticias->RecordCount();
// end Recordset
?>

<?php
if (!isset($_GET['date'])){
$date=date("Y-m-d");
}
else{
$date=$_GET['date'];
}
?>

<?php
while (!$noticias->EOF) {
?>
<tr>
<td><?php echo $noticias->Fields('Noticia'); ?></td>
<td>n</td>
</tr>
<?php
$noticias->MoveNext();
}
?>

<?php
$noticias->Close();
?>

Ese es el codigo principal, plz espero sugerencias