- Timestamp:
- 2007/01/09 18:09:08 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
temp/test-xoops.ec-cube.net/html/test/kakinaka/topic_list.php
r1052 r1053 5 5 global $arrResponse; 6 6 7 $sql = 'SELECT topic_id, topic_title, topic_response FROM ' . $xoopsDB->prefix('bb_topics') . ' ORDER BY topic_response, topic_id'; 8 9 echo date("Y/m/d H:i:s", 1157712086); 10 7 $sql = 'SELECT topic_id, topic_title, topic_response, topic_time FROM ' . $xoopsDB->prefix('bb_topics') . ' ORDER BY topic_response, topic_id'; 11 8 12 9 if ( !$result = $xoopsDB->query($sql) ) { … … 15 12 } 16 13 17 print_r($xoopsDB);18 19 14 while ( $myrow = $xoopsDB->fetchArray($result) ) { 20 21 //$post_sql = 'SELECT max(post_time) FROM xoops_bb_posts group by topic_id WHERE topic_id = ' . $myrow[];22 23 15 foreach($myrow as $key => $val){ 24 16 //$val = mb_convert_encoding($val, "euc-jp"); 25 if($key == "topic_response"){ 26 print("¡Ú" . $arrResponse[$val] . "¡Û"); 27 }else{ 28 print($val . "\t"); 17 18 switch ($key) { 19 case "topic_response": 20 print("¡Ú" . $arrResponse[$val] . "¡Û"); 21 break; 22 case "topic_time": 23 print(date("Y/m/d H:i:s"), $val); 24 break; 25 default: 26 print($val . "\t"); 27 break; 28 29 29 } 30 30 }
Note: See TracChangeset
for help on using the changeset viewer.
