Tema: Novato PHP
Ver Mensaje Individual
  #18 (permalink)  
Antiguo 30/07/2003, 04:39
Avatar de DINASEN
DINASEN
 
Fecha de Ingreso: marzo-2003
Mensajes: 997
Antigüedad: 21 años, 1 mes
Puntos: 1
bueno yo lo dejaria asi

Código PHP:

<?

if (!isset($_GET['date'])){
$colname__noticias("Y-m-d");
}
else{
$colname__noticias=$_GET['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();

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

$noticias->Close();
?>
Un Saludo