Advertisement
Guest User

Untitled

a guest
Jul 22nd, 2017
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.24 KB | None | 0 0
  1. $qrSQL = mysql_query("SELECT * FROM agendamentos ORDER BY datahora DESC");
  2. while($row = mysql_fetch_assoc($qrSQL)){
  3.  
  4. echo 'Data :'.date('d/m/Y', strtotime($row['datahora']));
  5. echo ' - Hora :'.date(‘H:i', strtotime($row['datahora']);
  6. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement