$onedb=$db->query("select MalfunctionID,StartTime,MalfunctionType,UserID,MalfunctionContent,IsSolve from malfunctionrecord order by MalfunctionID desc"); while($onedb->next_record()) { $two=$db->query("select UserID,CommunityID,UserAddress from personuserinfo where UserID='$UserID'"); $two->next_record(); } 好像应该这样 $db->next_record($onedb) 这样应该也可以.呵,我没用过phplib那个,我猜下的,你可以试下 不过我用pear的就像前面所说那样
while($onedb->next_record())
{
$two=$db->query("select UserID,CommunityID,UserAddress from personuserinfo where UserID='$UserID'");
$two->next_record();
}
好像应该这样
$db->next_record($onedb)
这样应该也可以.呵,我没用过phplib那个,我猜下的,你可以试下
不过我用pear的就像前面所说那样