Untitled

From Rock3r, 9 Years ago, written in PHP, viewed 550 times.
URL https://paste.godclan.hu/view/LgBnVxKC Embed
Download Paste or View Raw
  1. <?php
  2.         include('config.php');
  3.        
  4.         $accountQuery = mysql_query("SELECT * FROM users WHERE login = 'player' ") or die (mysql_error());
  5.         if( $accountQuery ) {
  6.                 $acc = mysql_fetch_assoc($accountQuery);
  7.                 $char = $acc['character'];
  8.                 $money = $acc['money'];
  9.                 $xp = $acc['xp'];
  10.                 $lvl = $acc['level'];
  11.         }
  12.        
  13.         $levels = array (
  14.                 1 => 100,
  15.                 2 => 200,
  16.                 3 => 300
  17.         );
  18.         if (isset($_POST['alma']))
  19.         {
  20.                $insert = mysql_query("UPDATE users SET xp = '$xpn'") or die(mysql_error());
  21.         }
  22.         else
  23.         {
  24.              echo "szar";
  25.         }
  26. ?>

Reply to "Untitled"

Here you can reply to the paste above