Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if(isset($_GET['address'])){
- require("../config.php"); #My database connection
- $address = $_GET['address']; #Getting users bitcoin address from url
- $price = mysqli_query("SELECT af_time FROM af_auto WHERE Address = '$address'"); #Trying to get users current timestamp
- $result = mysqli_fetch($price); #Trying to get users current timestamp
- $future = strtotime("+1 hour"); #Trying to get timestamp of 1 hour ahead of time
- $expire = $result['price'] + $future; #Trying to add current timestamp plus 1 hour
- $q = $con->query("UPDATE af_auto SET af_Time = $expire WHERE Address = '$address'"); #Trying to update database with my new timestamp
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement