Hello
i have sql error with bookmarks.php file for line # 21
SQL error:
Original ligne:
Thank you for your help :smile
i have sql error with bookmarks.php file for line # 21
SQL error:
Database Error in bookmarks.php on line 21: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'ORDER BY torrents.id DESC LIMIT 0,25' at line 1. Query was: SELECT bookmarks.id as bookmarkid, users.username, users.id as owner, torrents.id, torrents.name, torrents.type, torrents.comments, torrents.leechers, torrents.seeders, ROUND (torrents.ratingsum / torrents.numratings) AS rating, categories.name AS cat_name, categories.image AS cat_pic, torrents.save_as, torrents.numfiles, torrents.added, torrents.filename, torrents.size, torrents.views, torrents.visible, torrents.hits, torrents.times_completed, torrents.category FROMmarks LEFT JOIN torrents ON bookmarks.torrents = torrents.id LEFT JOIN users on torrents.owner = users.id LEFT JOIN categories ON torrents.category = categories.id WHERE bookmarks.userid = ORDER BY torrents.id DESC LIMIT 0.25. Original ligne:
list ($ pagertop, $ pagerbottom, $ limit) = pager (25, $ count, "bookmarks.php?");
$ res = SQL_Query_exec ("SELECT bookmarks.id as bookmarkid, users.username, users.id as owner, torrents.id, torrents.name, torrents.type, torrents.comments, torrents.leechers, torrents.seeders, ROUND (torrents .ratingsum / torrents.numratings) AS rating, categories.name AS cat_name, categories.image AS cat_pic, torrents.save_as, torrents.numfiles, torrents.added, torrents.filename, torrents.size, torrents.views, torrents.visible, torrents.hits, torrents.times_completed, torrents.category FROM bookmarks LEFT JOIN torrents ON bookmarks.torrentid = torrents.id LEFT JOIN users on torrents.owner = users.id LEFT JOIN categories ON torrents.category = categories.id WHERE bookmarks.userid = $ user ORDER BY torrents.id DESC $ limit ") or die (mysqli_error ($ GLOBALS [" DBconnector "])); Thank you for your help :smile
Last edited by spiritblue on 2021-11-24 21:57:37
