Hi Josh,
First you need to get the month and year
$month=substr($m,0,3);
$year=substr($m,3,2);
Now use this query (For MySQL only)
$qry="SELECT * FROM $tablename WHERE LCASE(DATE_FORMAT($date_field,'%b'))='$month' AND DATE_FORMAT($date_field,'%y')='$year'";
Cheers
Ajay