Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- include_once ('./db/connection.php');
- $db = new connection();
- session_start();
- if (!isset($_SESSION['id'])) {
- $db->redirect('../index.php');
- }
- $result=$db->getBirthdays($_SESSION['id']);
- $row = mysqli_fetch_assoc($result);
- echo json_encode($row);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement