Advertisement
Guest User

Untitled

a guest
Jun 12th, 2017
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. <?
  2.  
  3. $currentdomain = $_SERVER['SERVER_NAME'];
  4.  
  5. // db settings
  6. $mysql_host = "localhost";
  7. $mysql_user = "doncroce_doncroc";
  8. $mysql_pass = "";
  9. $mysql_db = "doncroce_external";
  10.  
  11. $link = mysql_connect($mysql_host, $mysql_user, $mysql_pass);
  12. mysql_select_db($mysql_db, $link);
  13.  
  14. $query = "SELECT appid FROM external WHERE (page_url, '".$currentdomain."')";
  15. $appid = mysql_query($query,$link) or die(mysql_error($link));
  16.  
  17. echo $appid;
  18.  
  19. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement