Codice: Seleziona tutto
$sql = "SELECT forum_id, topic_id, post_id, post_subject FROM ".POSTS_TABLE." ORDER BY post_time DESC LIMIT 0,10";
$result = $db->sql_query($sql);
while ($row = $db->sql_fetchrow($result)){
$template->assign_block_vars('last_topics',array(
'POST_TIME' => $user->format_date($row['post_time'])
));
}
$db->sql_freeresult($result);
Devo includere altra qualche cosa?
Questi a seguito sono già inclusi!
Codice: Seleziona tutto
include($phpbb_root_path . 'common.' . $phpEx);
include($phpbb_root_path . 'includes/functions_display.' . $phpEx);
