Changeset 445 for temp/test-xoops.ec-cube.net
- Timestamp:
- 2006/12/04 23:50:03 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
temp/test-xoops.ec-cube.net/html/modules/newbb/blocks/newbb_new.php
r405 r445 49 49 break; 50 50 } 51 $query='SELECT t.topic_id, t.topic_title, t.topic_last_post_id, t.topic_time, t.topic_views, t.topic_replies, t.forum_id, f.forum_name FROM '.$db->prefix('bb_topics').' t, '.$db->prefix('bb_forums').' f WHERE f.forum_id=t.forum_id AND f.forum_type <> 1 ORDER BY '.$order.' DESC';51 $query='SELECT c.cat_id, c.cat_title, t.topic_id, t.topic_title, t.topic_last_post_id, t.topic_time, t.topic_views, t.topic_replies, t.forum_id, f.forum_name FROM '.$db->prefix('bb_topics').' t, '.$db->prefix('bb_forums').' f,'.$db->prefix('bb_categories').' c WHERE f.forum_id=t.forum_id AND f.cat_id=c.cat_id AND f.forum_type <> 1 ORDER BY '.$order.' DESC'; 52 52 if (!$result = $db->query($query,$options[0],0)) { 53 53 return false;
Note: See TracChangeset
for help on using the changeset viewer.
