pro parte primero lo coloreamos
Código PHP:
<?
// 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();
?>