| Line | |
|---|
| 1 | <?php
|
|---|
| 2 | include '../../../mainfile.php';
|
|---|
| 3 | $xoopsOption['template_main'] = 'topic_list.html';
|
|---|
| 4 | include XOOPS_ROOT_PATH."/header.php";
|
|---|
| 5 |
|
|---|
| 6 | $sql = 'SELECT * FROM ' . $xoopsDB->prefix('bb_topics');
|
|---|
| 7 | print($sql);
|
|---|
| 8 |
|
|---|
| 9 | if ( !$result = $xoopsDB->query($sql) ) {
|
|---|
| 10 | redirect_header(XOOPS_URL.'/',1,_MD_ERROROCCURED);
|
|---|
| 11 | exit();
|
|---|
| 12 | }
|
|---|
| 13 |
|
|---|
| 14 |
|
|---|
| 15 | while ( $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);
|
|---|
| 24 | ?> |
|---|
Note: See
TracBrowser
for help on using the repository browser.