Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $host="127.0.0.1"; // Hostname
- $username="root"; // Mysql username
- $password=""; // Mysql password
- $db_name="game"; //Nome del Database
- $db = mysql_connect($host,$username,$password);
- mysql_select_db($db_name,$db);
- $id = $_POST['id'];
- $qp = $_POST['qp'];
- $continuo = mysql_query("UPDATE accounts SET PEN = $qp WHERE ID = $id;")|| die(mysql_error());
- if (!$continuo) {
- die ("<font color='red'>Errore.</font>" . mysql_error());
- }
- /* By tutore105 */
- mysql_close($db);
- echo "<font color='green'>Transazione avvenuta con successo.</font>" ;
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement