用php获取信息实例

?$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 br; echo 作者: . $info[author]; echo br; echo $info[content];}@mysql_close($conn);?
You can leave a response, or trackback from your own site.

Leave a Reply

网站地图xml地图