Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- session_start();
- require_once('authenticate.php');
- $db = new mysqli('classroom.cs.unc.edu', 'rarora9', 'tjGHkxWAG0AIv492', 'rarora9db');
- if($db->connect_errno > 0) {
- die('Unable to connect to database [' . $db->connect_error . ']');
- }
- $drugs = array();
- header("Content-type:application/json");
- // $test = array('prop1' => 'ABC', 'prop2' => 42, 'prop3' => 2 + 3);
- print(json_encode($drugs));
- exit();
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement