Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $hoje = date("Y-m-d"); // Retorna data atual (2018-03-15) formato americano
- $inicio_evento = $row['inicio']; // Retorna data 2018-03-15
- $fim_evento = $row['fim']; // Retorna data 2018-03-20
- if(strtotime($inicio_evento) == strtotime($hoje) OR strtotime($fim_evento) >= strtotime($hoje)) {
- // CODE
- }
Add Comment
Please, Sign In to add comment