/** * Created by PhpStorm. * User: hze * Date: 12/24/15 * Time: 2:31 PM */ session_start(); error_reporting(0); include "connection.php"; include "DataRetrieval.php"; include "getuseraddress.php"; if ($_GET["friendid"]) { insertFriend($link, $_SESSION['id'], $_GET["friendid"]); } if ($_GET["approveid"]) { insertApproveList($link, $_SESSION['id'], $_GET["approveid"]); } ?> <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags --> <title>Neighbor</title> <!-- Bootstrap --> <link href="css/bootstrap.min.css" rel="stylesheet">
<?php /** * Created by PhpStorm. * User: bowang * Date: 12/23/15 * Time: 16:56 */ include "DataRetrieval.php"; if (connect() == false) { echo "connect_fail!"; } else { $conn = connect(); echo "connect_done "; } #echo mysqli_num_rows($res); if (insertApproveList($conn, 99, 2)) { echo "ok"; } else { echo "die"; }