Asumiendo que tu tabla
informes contiene los siguientes campos: id, usuario y fecha, debes hacer lo siguiente:
Código PHP:
Ver original<?php
$query_reporte = "SELECT * FROM informes WHERE fecha > DATE_SUB(CURRENT_TIMESTAMP(),INTERVAL 20 DAY)";
?>
<table>
<tr><td>id</td><td>Usuario</td><td>Fecha</td></tr>
<?php
?>
<tr>
<td><?php echo $row['id'] ?></td>
<td><?php echo $row['usuario'] ?></td>
<td><?php echo $row['fecha'] ?></td>
</tr>
<?php } ?>
Algo así por el estilo. Espero que sea útil