Select items within time range


/ Published in: PHP
Save to your folder(s)



Copy this code and paste it in your HTML
  1. $buscar_fecha = "SELECT * FROM items WHERE DATEDIFF('$hoy', fecha) > '$fecha_buscada'";
  2. $encontrados = array();
  3. while ($items = mysql_fetch_array($buscar)){
  4. echo('<br />Fecha: '.$items['fecha']);
  5. }

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.