Hi again!
Im having trouble with month wise record from database.
I wasent sure how to get the date of the record , so i added a column in my table like:
Field:date
Type: timestamp
Attributes:ON UPDATE CURRENT_TIMESTAMP
Default:CURRENT_TIMESTAMP
My query is :
$month=mysql_query(“SELECT COUNT(*) FROM client WHERE MONTH(date) = MONTH(CURDATE())”);
I get output “Resource id #6” when i try to print $month.
Is anything going wrong with my query or table field??
Please help me.