//Articles Hack $row_max = 20; /* Number of rows to display */ $rows = dbcount("(article_id)", "articles", "article_subject='".$data['user_id']."'"); if (!isset($rowstart) || !isNum($rowstart)) $rowstart = 0; opensidex("Articles Submitted by: ".$data['user_name'],"off"); echo "
"; $userarticle = dbquery("SELECT * FROM ".$db_prefix."articles WHERE article_name='".$data['user_id']."' ORDER BY article_datestamp DESC LIMIT $rowstart,$row_max"); //tablebreak(); $articlesd = ""; while ($articles=dbarray($userarticle)) { if ($articlesd != "") $articlesd .= "
"; $articlesd .= " ".$articles['article_subject'].""; } if ($data['user_id'] != $userdata['user_id']) { $whatuser = "This user has"; } else { $whatuser = "You have"; } if ($articlesd != "") { echo $articlesd; } else { echo "
".$whatuser." not posted any articles.
"; } echo "
"; if ($rows > $row_max) echo "
\n".makePageNav($rowstart,$row_max,$rows,3,FUSION_SELF."?lookup=".$data['user_id']."&")."\n
\n"; closeside();