- Messages
- 179
- Reaction score
- 89
- Points
- 888
What is actually the question here?right, I’m trying to make it so users can only reset their hwid every 3 months
Here’s how I’ve done it but I’ve never had to mess with php time before (I use timestamp)
im asking how the hell do i make it so if the time in the database is less than 3 months then throw them an error that says you need to wait x ammount of timeWhat is actually the question here?
$con = new PDO("mysql:host=$serverinfo;dbname=$databasename", "$username", "password");
$check_time = $con->prepare("SELECT `reset_time` FROM `user_table` WHERE id=":userid"");
$check_time->exectute();
if($check_time >=90){
//HWID reset functions here;
} else {
//fail/errormessage here;
}