Mercurial > hg > ywww
comparison twitter/twitterLogin.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 |
|---|---|
| 1 <?PHP | 1 <?PHP |
| 2 include "../../private/db.php"; | 2 include "../../../private/db_test.php"; |
| 3 | 3 |
| 4 include 'EpiCurl.php'; | 4 include 'EpiCurl.php'; |
| 5 include 'EpiOAuth.php'; | 5 include 'EpiOAuth.php'; |
| 6 include 'EpiTwitter.php'; | 6 include 'EpiTwitter.php'; |
| 7 include 'secret.php'; | 7 include 'secret.php'; |
| 38 //echo $add; | 38 //echo $add; |
| 39 $result2 = mysqli_query($link, $add); | 39 $result2 = mysqli_query($link, $add); |
| 40 | 40 |
| 41 //reset connection | 41 //reset connection |
| 42 mysqli_close($link); | 42 mysqli_close($link); |
| 43 include "../../private/db.php"; | 43 include "../../../private/db_test.php"; |
| 44 | 44 |
| 45 $sql3="SELECT FirstName, Surname, DisplayName, UserID from user WHERE Email ='$User'"; | 45 $sql3="SELECT FirstName, Surname, DisplayName, UserID from user WHERE Email ='$User'"; |
| 46 //echo $sql3; | 46 //echo $sql3; |
| 47 $resultFull=mysqli_query($link,$sql3); | 47 $resultFull=mysqli_query($link,$sql3); |
| 48 } | 48 } |
