This commit is contained in:
aftercase 2021-07-17 21:16:42 +01:00
parent 1bfd7d8e34
commit f7128dc530

View file

@ -255,10 +255,7 @@ LIMIT 0 , ?");
function getUserPastes(PDO $conn, $user_id) : array {
$query = $conn->prepare(
"SELECT pastes.id, visible, title, created_at, users.username, tagsys
FROM pastes
INNER JOIN users ON pastes.user_id = users.id
WHERE users.username = ?
"SELECT id, title, visible,code,created_at,tagsys,user_id from pastes WHERE user_id= ?
ORDER by pastes.id DESC");
$query->execute([$user_id]);
return $query->fetchAll();