请看我的代码
<?php
require "inc/template.inc";
$tpl = new Template("template");
$tpl->set_file("main", "third.html");
$tpl->set_file("my_header", "header.html");
$tpl->set_file("my_footer", "footer.html");
$tpl->set_var("title", "标题");
$tpl->set_block("main", "list", "lists");
require "inc/db_mysql.inc";
$H = new DB_MySQL($Host, $Database, $User, $Password);
$query = "SELECT username,score FROM my_tbl" or die('数据库选择错误');
while ($result = $H->DB_MySQL($query))
{
$tpl->set_var("username", $result["username"]);
$tpl->set_var("score", $result["score"]);
$tpl->parse("lists", "list", true);
}
$tpl->parse("header", "my_header");
$tpl->parse("footer", "my_footer");
$tpl->parse("mains", "main");
$tpl->p("mains");
?>
-----------------------------------
其中,db_mysql.inc代码如下,是PHPLIB类我用这个,最后输入的结果是空白的,请问这个问题在什么地方呢?谢谢