Iam newbie to Php and mysql.I have a datetime field in database and upon that datetime field iam generating a report.Here is my query
$date = $year."-".$month;
SELECT *FROM table WHERE request_date LIKE '$date%';
The month and year variables iam taking from input fields in a form.Here iam concatinating those two variables and passing them in the query.But it retruns nothing. The stored value in request_date is of formate 2011-02-28.
Kindly help how to do this.
regards;
SELECT *FROM table WHERE request_date LIKE '$date%';what is it echoing?SELECT * FROM