Here's what I have, I cant figure out why it doesnt work. What am I doing wrong?
btw, I also tried the script defining today and yesterday using mktime, still didnt work.
<?php
include 'connect.php';
$today=date('Y-m-d G:i:s');
$yesterday=date('Y-m-d G:i:s', strtotime('-1 days'));
mysql_select_db("db") or die("Unable to select database");
$query = "SELECT term FROM table WHERE date BETWEEN $yesterday AND $today";
$result = mysql_query($query) or die("Couldn't execute query");
echo "Results <br/>";
$count = 1 + $s ;
while ($row= mysql_fetch_array($result)) {
$title = $row["term"];
echo "$count.)$title<br/>";
$count++ ;
}