trying to understand INTERVAL
Hey Jason
Am trying to understand a MYSQL statement
"SELECT *, member_info.* FROM presentations INNER JOIN member_info ON MemberNameID = MemberID WHERE Live = 1 AND DATE_FORMAT(PresentationDate, '%Y-%m-%d') >= (CURDATE() + INTERVAL 0 HOUR) ORDER BY PresentationDate ASC"
The bit I am trying to understand is
(CURDATE() + INTERVAL 0 HOUR)
- basically I am trying to undestand what changing the 0 HOUR to 1 HOUR is actually doing as at the moment set to 0 content using, for example todays date, shows the content for todays date but if I change it to 1 HOUR the content for todays date is no longer visible.
Is this a binary 1 or 0 (ie off / on) or is it a number and could be anything from 0 to 24?
Cheers
Jamie