Ignore:
Timestamp:
2007/01/09 17:56:01 (19 years ago)
Author:
kaki
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • temp/test-xoops.ec-cube.net/html/test/kakinaka/topic_list.php

    r1050 r1051  
    77$sql = 'SELECT topic_id, topic_title, topic_response FROM ' . $xoopsDB->prefix('bb_topics') . ' ORDER BY topic_response, topic_id'; 
    88 
    9  
    10 echo date("Y/m/d l H:i:s", 1157712086); 
     9echo date("Y/m/d H:i:s", 1157712086); 
    1110 
    1211 
     
    1615} 
    1716 
     17print_r($xoopsDB); 
     18 
    1819while ( $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    if ( !$post_result = $xoopsDB->query($post_sql) ) { 
     23        redirect_header(XOOPS_URL.'/',1,_MD_ERROROCCURED); 
     24        exit(); 
     25    } 
     26 
    1927 
    2028    foreach($myrow as $key => $val){ 
Note: See TracChangeset for help on using the changeset viewer.