diff --git a/MyPastes.php b/MyPastes.php index 0385c53..46a6107 100644 --- a/MyPastes.php +++ b/MyPastes.php @@ -12,7 +12,8 @@ if(GetUsersIDBySession($_COOKIE["pp_sid"],$_COOKIE["pp_skey"]) == -1){ die(); } $stmt = $conn->prepare('SELECT * FROM pastes WHERE owner=:own'); -$stmt->bindParam(':own', GetUsersIDBySession($_COOKIE["pp_sid"],$_COOKIE["pp_skey"])); +$own = GetUsersIDBySession($_COOKIE["pp_sid"],$_COOKIE["pp_skey"]); +$stmt->bindParam(':own', $own); $stmt->execute(); if($stmt->rowCount()>0){ echo "";