Guest User

Untitled

a guest
Mar 20th, 2018
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. $hoje = date("Y-m-d"); // Retorna data atual (2018-03-15) formato americano
  2. $inicio_evento = $row['inicio']; // Retorna data 2018-03-15
  3. $fim_evento = $row['fim']; // Retorna data 2018-03-20
  4.  
  5. if(strtotime($inicio_evento) == strtotime($hoje) OR strtotime($fim_evento) >= strtotime($hoje)) {
  6. // CODE
  7. }
Add Comment
Please, Sign In to add comment