Jump to content

help explain this query....


liomon41

Recommended Posts

Can anyone please explain to me in details(if possible) what this query does..

 

$query = "SELECT firstTeam, secondTeam, gameId, date, time,

                    IF(SUBTIME(TIMESTAMP(`date`, `time`), '1:0:0') > NOW(), 1, 0) as active

              FROM fixtures

              ORDER BY date, time";

 

having issues with "as active" , never used that before, need your help... thanks

Link to comment
https://forums.phpfreaks.com/topic/264407-help-explain-this-query/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.