Guest User

Untitled

a guest
Dec 16th, 2017
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. <?php
  2. $connect = mysqli_connect("localhost", "root", "", "recruiter");
  3. $sql = "SELECT * FROM recruiter";
  4. $result = mysqli_query($connect, $sql);
  5. $json_array = array();
  6. while($row = mysqli_fetch_assoc($result))
  7. {
  8. $json_array[] = $row;
  9. $database = '$database';
  10. }
  11. echo (json_encode($json_array));
  12. ?>
Add Comment
Please, Sign In to add comment