mirror of
https://github.com/Neetpone/ponepaste.git
synced 2025-03-12 14:40:09 +01:00
Updated
This commit is contained in:
parent
1bfd7d8e34
commit
f7128dc530
1 changed files with 2 additions and 5 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Reference in a new issue