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

Revision 1043, 756 bytes checked in by kaki, 20 years ago (diff)
Line 
1<?php
2include '../../mainfile.php';
3include XOOPS_ROOT_PATH.'/modules/newbb/config.php';
4
5global $arrResponse;
6
7$sql = 'SELECT topic_id, topic_title, topic_response FROM ' . $xoopsDB->prefix('bb_topics') . ' ORDER BY topic_response, topic_id';
8
9if ( !$result = $xoopsDB->query($sql) ) {
10    redirect_header(XOOPS_URL.'/',1,_MD_ERROROCCURED);
11    exit();
12}
13
14while ( $myrow = $xoopsDB->fetchArray($result) ) {
15   
16    foreach($myrow as $key => $val){
17        //$val = mb_convert_encoding($val, "euc-jp");
18        if($key == "topic_response"){
19            print($arrResponse[$val] . "\t");
20        }else{
21            print($val . "\t");
22        }
23    }
24    print("<BR>");
25/*
26    $myrow = mb_convert_encoding($myrow["topic_title"], "euc-jp");
27    print($myrow);
28    print("<BR>");
29*/
30}
31
32
33?>
Note: See TracBrowser for help on using the repository browser.