I am using mySql and the table column dateis of type DATETIME
But I want to compare only today the date is not the time
$today = date("Y-m-d", time());
IF I am comparing a date using the method above, it is always wrong.
$this->update("
UPDATE `stats_tracker`
SET
`user_agent`='$this->visitor_user_agent' ,
`referrer`='$this->referrer_page' ,
`page_views`='$page_views'
WHERE
`visitor_ip`='$this->visitor_ip'
AND `page`='$this->this_page'
AND `date`='$today'");
Please help me, I'm not a good mySQL programmer.
user1008545
source
share