Compare commits

..

No commits in common. "5beedc7a38329dfc35444baeb40bd6b7e139682a" and "e6b59be095f5b7e130959a49d8b68e131e3fb832" have entirely different histories.

View File

@ -11,7 +11,7 @@ if (isset($_GET['token'])){
$userData = $stmt->fetchAll(PDO::FETCH_ASSOC); $userData = $stmt->fetchAll(PDO::FETCH_ASSOC);
$username = $userData[0]['username']; $username = $userData[0]['username'];
$userID = $userData[0]['user']; $userID = $userData[0]['user'];
$sql = "SELECT workout_routines.id, title, username FROM workout_routines inner join users on workout_routines.creator=users.id WHERE public=1 or creator=?"; $sql = "SELECT * FROM workout_routines inner join users on workout_routines.creator=users.id WHERE public=1 or creator=?";
$stmt = $pdo->prepare($sql); $stmt = $pdo->prepare($sql);
$stmt->bindParam(1, $userID); $stmt->bindParam(1, $userID);
if ($stmt->execute()){ if ($stmt->execute()){