Created
March 5, 2020 18:09
-
-
Save Tiefseetauchner/501bc4492397715a5de1ac5d5f564b1e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$userQuery = $pdo->prepare('SELECT pk_userid FROM users where username = :username'); | |
$userQuery->execute($_SESSION); | |
$userid = $userQuery->fetchAll(); | |
var_dump($userid); | |
$writeUser = $pdo->prepare('update users set bestQuizPoints = :points where username = :username'); | |
$writeUser->execute(["username" => $_SESSION["username"], "points" => $points]); | |
echo "<br>reached " . $_SESSION["username"] . " " . $points; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment