Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?
- $currentdomain = $_SERVER['SERVER_NAME'];
- // db settings
- $mysql_host = "localhost";
- $mysql_user = "doncroce_doncroc";
- $mysql_pass = "";
- $mysql_db = "doncroce_external";
- $link = mysql_connect($mysql_host, $mysql_user, $mysql_pass);
- mysql_select_db($mysql_db, $link);
- $query = "SELECT appid FROM external WHERE (page_url, '".$currentdomain."')";
- $appid = mysql_query($query,$link) or die(mysql_error($link));
- echo $appid;
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement