View Single Post
Old 10-05-2006, 07:46 AM
The Geek's Avatar
The Geek The Geek is offline
Senior Member
Join Date: Aug 2005
Posts: 6,717
Geek Article and Review System License Holder GeekMart License Holder Geek Auto-Linker Pro License Holder Geek Advertising Banner License Holder Geek Gazette License Holder 

No, however your query should be more like this one:

PHP Code:
$results $db->query_read("SELECT g.header_image, t.title, t.views, t.replycount, t.threadid FROM " TABLE_PREFIX "thread t INNER JOIN " TABLE_PREFIX "gars g ON t.threadid = g.threadid WHERE t.visible=1 " . ($forumid " AND t.forumid in (-1$forumid) " "") . "AND t.postuserid = $userinfo[userid] $orderby LIMIT " . (intval($limit) ? $limit "5")); 
Havent tested it, but it should be fine.
Reply With Quote