|
发表于 2004-11-11 08:30:46
|
显示全部楼层
字段 类型 属性 Null 默认
post_time int(11) 否 0
user_lastvisit int(11) 否 0
参看phpbb2的posting.php生成post time
[code:1]
$msg_date = create_date($board_config['default_dateformat'], $postrow['post_time'], $board_config['board_timezone']);[/code:1]
参看phpbb2的index.php访问last visit
[code:1]$sql = "SELECT t.forum_id, t.topic_id, p.post_time
FROM " . TOPICS_TABLE . " t, " . POSTS_TABLE . " p
WHERE p.post_id = t.topic_last_post_id
AND p.post_time > " . $userdata['user_lastvisit'] . "
AND t.topic_moved_id = 0";[/code:1]
用phpmyadmin看看经典PHP程序的数据库结构,然后回到PHP代码处定位 |
|