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
Post a Comment