source: temp/test-xoops.ec-cube.net/html/modules/test/kakinaka/topic_list.php @ 1022

Revision 1022, 636 bytes checked in by kaki, 17 years ago (diff)
Line 
1<?php
2include '../../../mainfile.php';
3$xoopsOption['template_main'] = 'topic_list.html';
4include XOOPS_ROOT_PATH."/header.php";
5
6$sql = 'SELECT * FROM ' . $xoopsDB->prefix('bb_topics');
7print($sql);
8
9if ( !$result = $xoopsDB->query($sql) ) {
10    redirect_header(XOOPS_URL.'/',1,_MD_ERROROCCURED);
11    exit();
12}
13
14
15while ( $myrow = $xoopsDB->fetchArray($result) ) {
16    //echo mb_detect_encoding($myrow) . "<br>";
17//  $myrow = mb_convert_encoding($myrow["topic_title"], "euc-jp");
18    print($myrow);
19    print("<BR>");
20}
21
22// Âбþ¾õ¶·
23$xoopsTpl->assign('arrResponse', $arrResponse);
24include XOOPS_ROOT_PATH."/footer.php";
25?>
Note: See TracBrowser for help on using the repository browser.