コード例 #1
0
ファイル: feefunctions.php プロジェクト: harshselani/My-Class
function updateFeeReceipt($payID, $batchname, $standard, $sumofrupees, $chequeno, $chequedrawn, $id)
{
    $conn = getConnection();
    $Obj = getFeePayement($payID);
    $Obj->setStd($standard);
    $Obj->setBatchName($batchname);
    $Obj->setSumWords($sumofrupees);
    $Obj->setPayementInfo($chequeno);
    $Obj->setChequeDrawn($chequedrawn);
    $Obj->setCreatedBy($id);
    $result = $Obj->update1();
    if ($result) {
        $message = "Fee Payment Updated Successfully :" . $name;
    } else {
        $message = mysql_error();
    }
    //$message="Fee Payment Updation Failed : ".$name;
    return $message;
}
コード例 #2
0
 function getMyFees()
 {
     $conn = getConnection();
     $list = array();
     $query = "SELECT * FROM feepayement WHERE studentID='" . $this->ID . "' ORDER BY datepaid ASC";
     $result = mysql_query($query);
     while ($member = mysql_fetch_array($result)) {
         $tempmark = getFeePayement($member['ID']);
         array_push($list, $tempmark);
     }
     if (count($list) != 0) {
         return $list;
     }
     return NULL;
 }