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

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

rewrite - Trouble with Wordpress multiple custom querystrings -