Advertisement
Guest User

Untitled

a guest
Aug 22nd, 2019
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. <?php
  2.  
  3. include_once ('./db/connection.php');
  4. $db = new connection();
  5.  
  6. session_start();
  7. if (!isset($_SESSION['id'])) {
  8. $db->redirect('../index.php');
  9. }
  10.  
  11. $result=$db->getBirthdays($_SESSION['id']);
  12. $row = mysqli_fetch_assoc($result);
  13. echo json_encode($row);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement