mem
12-19-2001, 05:48 AM
$last_posts_10 = '';
$get_last_posts = $DB_site->query("SELECT thread.title,thread.threadid,thread.forumid,postid ,post.dateline FROM post,thread WHERE thread.threadid=post.threadid AND thread.visible = 1 AND post.userid='$userid' ORDER BY post.dateline DESC LIMIT 10");
while ($get_last_post = $DB_site->fetch_array($get_last_posts)) {
{
$get_last_post[title] = $get_last_post[title];
$lastpostdate=vbdate($dateformat,$get_last_post[dateline]);
$lastposttime=vbdate($timeformat,$get_last_post[dateline]);
}
$last_posts_10 .= "<a href=showthread.php?s=$session[sessionhash]&threadid=$get_last_post[threadid]>$get_last_post[title]</a> $lastpostdate $lastposttime<br>";
}
Above i want to get last 10 post in userinfo.
But the posts which in private forums is show.:confused: :confused:
How can i slove this problem ?
thank you very much... :) :)
$get_last_posts = $DB_site->query("SELECT thread.title,thread.threadid,thread.forumid,postid ,post.dateline FROM post,thread WHERE thread.threadid=post.threadid AND thread.visible = 1 AND post.userid='$userid' ORDER BY post.dateline DESC LIMIT 10");
while ($get_last_post = $DB_site->fetch_array($get_last_posts)) {
{
$get_last_post[title] = $get_last_post[title];
$lastpostdate=vbdate($dateformat,$get_last_post[dateline]);
$lastposttime=vbdate($timeformat,$get_last_post[dateline]);
}
$last_posts_10 .= "<a href=showthread.php?s=$session[sessionhash]&threadid=$get_last_post[threadid]>$get_last_post[title]</a> $lastpostdate $lastposttime<br>";
}
Above i want to get last 10 post in userinfo.
But the posts which in private forums is show.:confused: :confused:
How can i slove this problem ?
thank you very much... :) :)