Advertisement
Guest User

Untitled

a guest
Aug 19th, 2017
302
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. <?php
  2. $host="localhost"; // Host name
  3. $username="luser"; // Mysql username
  4. $password="pass"; // Mysql password
  5. $db_name="dbname"; // Database name
  6. $tbl_name="proof"; // Table name
  7. //Update Database
  8. mysql_connect ("$host", "$username", "$password") or die ("Cannot connect");
  9. $id ="{$_GET['id']}";
  10. $count =($_GET["count"]);
  11. $sql="INSERT INTO $tbl_name(player_id, play_count)VALUES('$id','$count')";
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement