| Line | |
|---|
| 1 | <?php
|
|---|
| 2 | include '../../mainfile.php';
|
|---|
| 3 | include XOOPS_ROOT_PATH.'/modules/newbb/config.php';
|
|---|
| 4 |
|
|---|
| 5 | global $arrResponse;
|
|---|
| 6 |
|
|---|
| 7 | $sql = 'SELECT topic_id, topic_title, topic_response FROM ' . $xoopsDB->prefix('bb_topics') . ' ORDER BY topic_response, topic_id';
|
|---|
| 8 |
|
|---|
| 9 |
|
|---|
| 10 | echo date("Y/m/d l H:i:s", 1157712086);
|
|---|
| 11 |
|
|---|
| 12 |
|
|---|
| 13 | if ( !$result = $xoopsDB->query($sql) ) {
|
|---|
| 14 | redirect_header(XOOPS_URL.'/',1,_MD_ERROROCCURED);
|
|---|
| 15 | exit();
|
|---|
| 16 | }
|
|---|
| 17 |
|
|---|
| 18 | while ( $myrow = $xoopsDB->fetchArray($result) ) {
|
|---|
| 19 |
|
|---|
| 20 | foreach($myrow as $key => $val){
|
|---|
| 21 | //$val = mb_convert_encoding($val, "euc-jp");
|
|---|
| 22 | if($key == "topic_response"){
|
|---|
| 23 | print("¡Ú" . $arrResponse[$val] . "¡Û");
|
|---|
| 24 | }else{
|
|---|
| 25 | print($val . "\t");
|
|---|
| 26 | }
|
|---|
| 27 | }
|
|---|
| 28 | print("<BR>");
|
|---|
| 29 | }
|
|---|
| 30 |
|
|---|
| 31 | ?> |
|---|
Note: See
TracBrowser
for help on using the repository browser.