Update classes.php
This commit is contained in:
parent
4b9d67e22b
commit
3dc88acea4
|
|
@ -60,7 +60,8 @@ class PartyStarter {
|
|||
} else {
|
||||
$q = $con->prepare("UPDATE users SET lastPaid=:date WHERE id=:id");
|
||||
$q->bindParam(':id',$_SESSION['user'],PDO::PARAM_INT);
|
||||
$q->bindParam(':date',time(),PDO::PARAM_INT);
|
||||
$time = time();
|
||||
$q->bindParam(':date',$time,PDO::PARAM_INT);
|
||||
$q->execute();
|
||||
|
||||
$q = $con->prepare("UPDATE users SET money=money+:price WHERE id=:id");
|
||||
|
|
|
|||
Loading…
Reference in New Issue