$conn = @mysql_connect('localhost:3306','test','test');
include_once js.class.php;
include_once pager.class.php;
include_once whxbb.class.php;
include_once whxbb_article.class.php;
// 以上代码最好全放在一个包含文件中
// 显示id为3的记录的所有字段信息
$article = new article();
$info = $article->getinfo(3);
if (whxbb::iserror($info))
new whxbb_error(读取文章信息失败,请您稍后再试, 1, whxbb_error_echo);
else if($info == 0)
new whxbb_error(没有找到您需要的记录, 2, whxbb_error_echo);
else
{
echo $info['title'];
echo
;
echo 作者: . $info['author'];
echo
;
echo $info['content'];
}
@mysql_close($conn);
?>