| Line | |
|---|
| 1 | <?php
|
|---|
| 2 |
|
|---|
| 3 | include '../../mainfile.php';
|
|---|
| 4 |
|
|---|
| 5 | $sql = 'SELECT * FROM ' . $xoopsDB->prefix('bb_topics');
|
|---|
| 6 | if ( !$result = $xoopsDB->query($sql) ) {
|
|---|
| 7 | redirect_header(XOOPS_URL.'/',1,_MD_ERROROCCURED);
|
|---|
| 8 | exit();
|
|---|
| 9 | }
|
|---|
| 10 |
|
|---|
| 11 | while ( $myrow = $xoopsDB->fetchArray($result) ) {
|
|---|
| 12 | //echo mb_detect_encoding($myrow) . "<br>";
|
|---|
| 13 | $myrow["topic_title"] = mb_convert_encoding($myrow["topic_title"], "euc-jp");
|
|---|
| 14 | print($myrow["topic_title"]);
|
|---|
| 15 | print("<BR>");
|
|---|
| 16 | }
|
|---|
| 17 |
|
|---|
| 18 | ?> |
|---|
Note: See
TracBrowser
for help on using the repository browser.