SHARE
TWEET

Untitled

a guest Jul 17th, 2017 53 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2. // Make a MySQL Connection
  3. //Connect To Database
  4. $hostname='***';
  5. $username='***';
  6. $password='***';
  7. $dbname='***';
  8. $usertable1='Player_Master';
  9. $usertable2='Round1';
  10.  
  11. mysql_connect($hostname,$username, $password)
  12. OR DIE ('Unable to connect to database! Please try again later.');
  13.  
  14.  // $query = 'UPDATE' . $usertable1 . $usertable2;
  15.  
  16.     UPDATE Player_Master, Round1
  17.     SET Player_Master.Total_Raw=(Player_Master.Total_Raw)+(Round1.Player1_Raw),
  18.         Player_Master.Games=(Player_Master.Games+1)
  19.     WHERE Player_Master.Player_ID=Round1.Player1_ID;
  20. echo DONE;
  21.  
  22. ?>
RAW Paste Data
Top