错误信息:Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource in D:\AppServ\www\ayang\skin1\class\class1.php on line 15
下面是代码:
class1.php:
<?php 
include_once("../../daba/sql.php");
class pp
{
var $conn;
var $query;
var $result;
function top(&$ab,&$ac)
{
global $webip,$root,$qa,$classs;
$this->conn=mysql_connect($webip,$root,$qa);
mysql_select_db($classs);
$this->query="select name,password from bbc";
$this->result=mysql_query($this->query,$this->conn);
while ($qq=mysql_fetch_row($this->result))
{
   $ab=$qq[0];
   $ac=$qq[1];
}
}
}
?>function.php:
<div id="skin1-01">
<?php 
require_once("class/class1.php");
$aa=new pp();
$aa->top($ab,$ac);
echo $ab."<br>";
echo $ac;
?>
</div>
大家看看,为什么出现那个错误,同一文件夹同调用不出问题,跨页调用就出上面的问题,处么处理