Changeset 1281
- Timestamp:
- 2007/01/22 12:12:47 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
temp/test-xoops.ec-cube.net/html/modules/newbb/response.php
r1280 r1281 176 176 $xoopsTpl->assign('forum_name', 'Âбþ¾õ¶·°ìÍ÷'); 177 177 178 $sql = 'SELECT topic_id, topic_title, topic_response, topic_last_post_id, f rom_unixtime(topic_time) as topic_time, uname FROM xoops_bb_topics as tpc left join xoops_users as usr on tpc.topic_response_uid = usr.uid ORDER BY topic_response, topic_id DESC';178 $sql = 'SELECT topic_id, topic_title, topic_response, topic_last_post_id, forum_id, from_unixtime(topic_time) as topic_time, uname FROM xoops_bb_topics as tpc left join xoops_users as usr on tpc.topic_response_uid = usr.uid ORDER BY topic_response, topic_id DESC'; 179 179 if ( !$result = $xoopsDB->query($sql) ) { 180 180 redirect_header('index.php',2,_MD_ERROROCCURED); … … 185 185 $topic_lastread = newbb_get_topics_viewed(); 186 186 while ( $myrow = $xoopsDB->fetchArray($result) ) { 187 $fix = getFixName($myrow[' topic_id']);187 $fix = getFixName($myrow['forum_id']); 188 188 189 189 $xoopsTpl->append('topics', array(
Note: See TracChangeset
for help on using the changeset viewer.