SetQuery("select * from CourseFee where studentId='$xKey' and acadYear='$yKey' and semester='$zKey'"); } function GetSumLcFeeByStIdAndAcYAndSe($xKey, $yKey, $zKey){ $this->SetQuery("select sum(lcFee) as num from CourseFee where studentId='$xKey' and acadYear='$yKey' and semester='$zKey'"); if ($result=$this->GetResult()) { return $result['num']; } } function GetSumLbFeeByStIdAndAcYAndSe($xKey, $yKey, $zKey){ $this->SetQuery("select sum(lbFee) as num from CourseFee where studentId='$xKey' and acadYear='$yKey' and semester='$zKey'"); if ($result=$this->GetResult()) { return $result['num']; } } function GetSumKssFeeByStIdAndAcYAndSe($xKey, $yKey, $zKey){ $this->SetQuery("select sum(kssFee) as num from CourseFee where studentId='$xKey' and acadYear='$yKey' and semester='$zKey'"); if ($result=$this->GetResult()) { return $result['num']; } } } //--End class CourseFee-- ?>