Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- include "config.php";
- include('ptcofferwall_config.php');
- $password = $pw;
- $pwd = $_POST['pwd'];
- $amount = $_POST['a'];
- $user = $_POST['u'];
- if($pwd == $password) {
- $sql=$Db1->query("UPDATE user SET balance=balance+'$amount', tickets=tickets+1, earned_today=earned_today+'$amount' WHERE username='$user'");
- exit();
- } else {
- echo "Invalid password.";
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement