I have this query
Code:
SELECT * FROM mytable
where( ( day=curdate() andtime<=curtime())
or
( day<curdate() and date_format( fltime,'%H:%i')<='24:00'))
I want this.
Code:
If where day=curdate() and
time<=curtime()
has no values to go to the
Code:
or( day<curdate() and
date_format( fltime,'%H:%i')<='24:00'))
But always get the values for
Code:
or( day<curdate() and
date_format( fltime,'%H:%i')<='24:00'))
what is wrong?