php - Comparing dates and times in different fields -


now, i've problem following query:

select *  table  date > curdate()      or date = curdate()      , time > curtime() 

it's return rows date > of today need rows date of today time > of current time.

you need put related clauses inside parenthesis:

select *  table  date > curdate()      or (       date = curdate()        , time > curtime()     ) 

Comments

Popular posts from this blog

iphone - Three second countdown in cocos2d -

hyperlink - how to do url routing in php -

java.util.scanner - How to read and add only numbers to array from a text file -