Advertisement
contatowellington

Untitled

Feb 21st, 2019
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. O input retorna uma data 90 dias antes da atual
  2. <input name="datacad1" type="text" id="datacad1" value="<?php echo $data = date('Y-m-d H:i:s', strtotime('-90 days')); ?>" />
  3.  
  4.  
  5. No SQL:
  6. onde datacad é a data que foi cadastrado o pedido.
  7.  
  8. SELECT *
  9. FROM pedidos
  10. WHERE datacad > datacad1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement