my php program:
.....
$db1=new mysqldb();
$db1->setsql("select * from t_club order by club_id");
if($db1->selectquery())
{echo $db1->numberrows;(can output the right
value)
echo $db1->result;}
.....
my class document£º
....
function selectquery(){
.....
$this->qry=mysql_query($this->sql);
.....
else{
$this->numberrows=mysql_num_rows($this->qry);
if($this->numberrows>0){
for ($x=0;$x>$this->numberrows;$x++){
$this->result[$x]=mysql_fetch_row($this->qry); }
}else{
echo("[error:] retrieving data");
return false;}
return true;
}
}
....
i can get the value of $db1->result¡£how can i get the value of various fields?