You need to compare the date with today's or another specific date (for example -10 days) in the request itself, to make a sample. The date is placed in the cell itself via the time()
function:
$date = date("Ymd",time()); mysql_fetch_array(mysql_query("SELECT * FROM `table` WHERE date('Ym-d',`date`)='".$date."'"));
Writes an error: mysql_fetch_array() expects parameter 1 to be resource, boolean given