I am trying to retirve the numbers of records for a specific user for the current month and year. Does anyone see a problem with is statement:
PHP Code:
$monthsessions = mysql_result(mysql_query("SELECT COUNT(*) FROM login WHERE track_users_ID = '$users_ID' AND MONTH(track_date()) = MONTH(CURDATE()) AND YEAR(track_date()) = YEAR(CURDATE())"),0);






Bookmarks