This is my table:
| date | open | close |
-----------------------------
| 2016-08-05 | 04:00 | 05:00 |
| 2016-05-05 | 05:00 | 06:00 |
| 2016-09-05 | 06:00 | 07:00 |
and I need to make these statements:
if ($todaydate == date && open <= $todaytime <=close) {
// go to some link
}else{
// failed alert
}
How do I get $todaydate
and $todaytime
?