source:
temp/test-xoops.ec-cube.net/html/test/kakinaka/topic_list.php
@
985
| Revision 985, 421 bytes checked in by kaki, 20 years ago (diff) |
|---|
| 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 = mb_convert_encoding($myrow["topic_title"], "euc-jp"); |
| 14 | print($myrow); |
| 15 | print("<BR>"); |
| 16 | } |
| 17 | |
| 18 | ?> |
Note: See TracBrowser
for help on using the repository browser.
