Changed generating lastpost in topic and forum.

git-svn-id: https://svn.pioder.pl/uf-svn/uF@19 72ec579a-5ced-4fa4-82f3-afba5d98df2f
This commit is contained in:
pioder
2009-05-01 20:52:43 +00:00
parent 5df084c0ff
commit 6cc36dc266
3 changed files with 67 additions and 4 deletions

View File

@@ -29,7 +29,7 @@ while($result = @mysql_fetch_array($query))
{
$count_topic[$result['t_id']]=$result['p_id'];
}
$sql = "SELECT ".POSTS_TABLE.".*, ".USERS_TABLE.".* FROM ".POSTS_TABLE." LEFT JOIN ".USERS_TABLE." ON ".USERS_TABLE.".u_id = ".POSTS_TABLE.".u_id WHERE `f_id`='$fid' ORDER BY `ptime`";
/*$sql = "SELECT ".POSTS_TABLE.".*, ".USERS_TABLE.".* FROM ".POSTS_TABLE." LEFT JOIN ".USERS_TABLE." ON ".USERS_TABLE.".u_id = ".POSTS_TABLE.".u_id WHERE `f_id`='$fid' ORDER BY `ptime`";
$query = DataBase::sql_query($sql,'GENERAL', 'Could not obtain amout of posts in forum');
while($result = @mysql_fetch_array($query))
{
@@ -38,7 +38,7 @@ while($result = @mysql_fetch_array($query))
$lastpost[$result['t_id']]['time']=$result['ptime'];
$lastpost[$result['t_id']]['user_nick']=$result['nick'];
$lastpost[$result['t_id']]['user_rank']=$result['rank'];
}
} */
//
//generate output pages
//