comparison facebook/invite.php @ 15:385ddd7c4b55 testing

use test_db.php to get mysqld_test instance
author Henry S. Thompson <ht@inf.ed.ac.uk>
date Sun, 19 Feb 2017 16:17:53 +0000
parents 077b0a0a3e6d
children
comparison
equal deleted inserted replaced
14:1477b5e6dd16 15:385ddd7c4b55
33 //login user 33 //login user
34 try { 34 try {
35 $uid = $facebook->getUser(); 35 $uid = $facebook->getUser();
36 $me = $facebook->api('/me'); 36 $me = $facebook->api('/me');
37 37
38 include "../../private/db.php"; 38 include "../../../private/db_test.php";
39 $Email = $me['email']; 39 $Email = $me['email'];
40 $FirstName = $me['first_name']; 40 $FirstName = $me['first_name'];
41 $Surname = $me['last_name']; 41 $Surname = $me['last_name'];
42 //echo $Email; 42 //echo $Email;
43 $sql1="SELECT FirstName, Surname, DisplayName, UserID from user WHERE Email ='$Email'"; 43 $sql1="SELECT FirstName, Surname, DisplayName, UserID from user WHERE Email ='$Email'";
53 //echo $add; 53 //echo $add;
54 $result2 = mysqli_query($link, $add); 54 $result2 = mysqli_query($link, $add);
55 55
56 //reset connection 56 //reset connection
57 mysqli_close($link); 57 mysqli_close($link);
58 include "../../private/db.php"; 58 include "../../../private/db_test.php";
59 59
60 $sql3="SELECT FirstName, Surname, DisplayName, UserID from user WHERE Email ='$User'"; 60 $sql3="SELECT FirstName, Surname, DisplayName, UserID from user WHERE Email ='$User'";
61 //echo $sql3; 61 //echo $sql3;
62 $resultFull=mysqli_query($link,$sql3); 62 $resultFull=mysqli_query($link,$sql3);
63 } 63 }