I can't get my select statement to filter the datetime column today: I only need the row number (how many)
$u_today = date('Y-m-d');
$query = mysql_query("SELECT * FROM wds_sec1tasks WHERE due_date = '$u_today'");
$u_rows = mysql_num_rows($query);
echo $u_rows;
Do I need to grab the left 10 characters of datetime for comparison? sib (due_date, 0.10)?
thanks jm
source
share