Advertisement
Guest User

Untitled

a guest
Aug 11th, 2017
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.67 KB | None | 0 0
  1. <?php
  2. include("/home/xboxlive/public_html/links/class.gamercard.php");
  3. $dbuser = "TOOK OUT BECAUSE THIS SHIT IS PUBLIC LOL";
  4. $dbpass = "TOOK OUT BECAUSE THIS SHIT IS PUBLIC LOL";
  5. $dbhost = "localhost";
  6. $dbname = "xboxlive_smf1";
  7. $table = "leaderboard";
  8.  
  9. $msconn = mysql_connect($dbhost, $dbuser, $dbpass) or die ("Unable to connect to server");
  10. $db1 = mysql_select_db($dbname, $msconn) or die ("Unable to select database");
  11.  
  12. $delete = "TRUNCATE TABLE `$table`";
  13. mysql_query($delete);
  14.  
  15. $gamertag = $GamerCard->GamerTag;
  16. $gamerscore = $GamerCard->GamerScore;
  17. $sql = mysql_query("INSERT INTO leaderboard (gamertag, score) VALUES ('$gamertag', '$gamerscore')");
  18.  
  19. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement