From 4138f805579e31af73dbffc93fdd7e5f7d3669d9 Mon Sep 17 00:00:00 2001 From: unknown Date: Fri, 22 Jan 2021 22:51:02 +0500 Subject: [PATCH] configration --- createslips.php | 41 +++++++++++++++++++++++++++++-------- edtstd.php | 8 ++++---- newfaimly.php | 10 ++++----- newstd.php | 8 ++++---- payment.php | 38 ++++++++++++++++++++++------------ printslips.php | 36 ++++++++++++++++---------------- updateallbuilding.php | 10 ++++----- updateallbuscharge.php | 10 ++++----- updateallexamination.php | 10 ++++----- updateallgenerator.php | 10 ++++----- updateallmedical.php | 10 ++++----- updateallrecreation.php | 10 ++++----- updatealltution.php | 10 ++++----- updateclassbuilding.php | 10 ++++----- updateclassbuscharge.php | 10 ++++----- updateclassexamination.php | 10 ++++----- updateclassgenerator.php | 10 ++++----- updateclassmedical.php | 10 ++++----- updateclassrecreation.php | 10 ++++----- updateclasstution.php | 10 ++++----- updatefamilybuilding.php | 10 ++++----- updatefamilybuscharge.php | 10 ++++----- updatefamilyexamination.php | 10 ++++----- updatefamilygenerator.php | 10 ++++----- updatefamilymedical.php | 10 ++++----- updatefamilyrecreation.php | 10 ++++----- updatefamilytution.php | 10 ++++----- viewpaymentbyfn.php | 14 ++++++------- viewstd.php | 17 +++++++-------- 29 files changed, 209 insertions(+), 173 deletions(-) diff --git a/createslips.php b/createslips.php index 5902dc0..aaf9857 100644 --- a/createslips.php +++ b/createslips.php @@ -28,21 +28,40 @@ View All Students";}else {echo "Data not Updated
". mysql_error();} +if($update){ echo "Data Updated View All Students";}else {echo "Data not Updated
". mysqli_error();} } diff --git a/newfaimly.php b/newfaimly.php index d99ad0d..b4312cf 100644 --- a/newfaimly.php +++ b/newfaimly.php @@ -32,9 +32,9 @@ ".mysql_error();} +$insert = mysqli_query($con,"INSERT INTO iphs.faimly (fname, faimlynum)VALUES('$fname','$faimlynum')"); +if($insert){echo "Data Entered";}else{echo "Data not Entered
".mysqli_error();} } ?> diff --git a/newstd.php b/newstd.php index 4419452..974dc47 100644 --- a/newstd.php +++ b/newstd.php @@ -99,8 +99,8 @@ ".mysqli_error();} } diff --git a/payment.php b/payment.php index a2a7f10..aa9481e 100644 --- a/payment.php +++ b/payment.php @@ -29,22 +29,34 @@ "; -$paid = mysql_fetch_array(mysql_query("SELECT SUM(amount) AS amount FROM iphs.payments WHERE srno = $id",$con)); +$paid = mysqli_fetch_array(mysqli_query($con,"SELECT SUM(amount) AS amount FROM iphs.payments WHERE srno = $id")); @@ -68,9 +80,9 @@ echo "

Payment History

"; echo ""; -$paymentdata = mysql_query("SELECT * FROM iphs.payments WHERE srno = $id",$con); +$paymentdata = mysqli_query($con,"SELECT * FROM iphs.payments WHERE srno = $id"); -while($payment = mysql_fetch_array($paymentdata)){ +while($payment = mysqli_fetch_array($paymentdata)){ echo "
DateAmount
"; echo date("d-m-y",$payment["date"]); @@ -85,14 +97,14 @@ echo "
"; } if($_POST["submit"]=='Receive'){ -$con = mysql_connect("localhost","root","root","iphs"); -if(!$con){echo "Unable to Connect". mysql_error();} +$con = mysqli_connect("localhost","root","root","iphs"); +if(!$con){echo "Unable to Connect". mysqli_error();} $amount = $_POST["amount"]; $srno = $_POST["srno"]; $date = time(); -$insert = mysql_query("INSERT INTO iphs.payments (srno, amount, date)VALUES ('$srno', '$amount', '$date')",$con); -if($insert){echo "Amount Recorded";}else{echo "Amount not recorded ".mysql_error();} +$insert = mysqli_query($con,"INSERT INTO iphs.payments (srno, amount, date)VALUES ('$srno', '$amount', '$date')"); +if($insert){echo "Amount Recorded";}else{echo "Amount not recorded ".mysqli_error();} } ?> diff --git a/printslips.php b/printslips.php index e8e64d0..a0e7037 100644 --- a/printslips.php +++ b/printslips.php @@ -6,24 +6,24 @@ Islamic Public School Fee System -"; } else { echo "";}?> +"; } else { echo "";}?>
Sr. No: ".$id.""; echo "Fee Month: ".$month.""; -$name = mysql_query("SELECT * FROM iphs.students WHERE faimlynum = '$faimlynum' ",$con); +$name = mysqli_query($con,"SELECT * FROM iphs.students WHERE faimlynum = '$faimlynum' "); echo "Name: "; -while($std = mysql_fetch_array($name)){ echo $std["name"].", ";} +while($std = mysqli_fetch_array($name)){ echo $std["name"].", ";} echo ""; echo "Class: "; -$name = mysql_query("SELECT * FROM iphs.students WHERE faimlynum = '$faimlynum' ",$con); +$name = mysqli_query($con,"SELECT * FROM iphs.students WHERE faimlynum = '$faimlynum' "); -while($std = mysql_fetch_array($name)){ echo $std["class"].", ";} +while($std = mysqli_fetch_array($name)){ echo $std["class"].", ";} echo ""; echo ""; @@ -82,18 +82,18 @@ echo "Sr. No: ".$id.""; echo "Fee Month: ".$month.""; -$name = mysql_query("SELECT * FROM iphs.students WHERE faimlynum = '$faimlynum' ",$con); +$name = mysqli_query($con,"SELECT * FROM iphs.students WHERE faimlynum = '$faimlynum' "); echo "Name: "; -while($std = mysql_fetch_array($name)){ echo $std["name"].", ";} +while($std = mysqli_fetch_array($name)){ echo $std["name"].", ";} echo ""; echo "Class: "; -$name = mysql_query("SELECT * FROM iphs.students WHERE faimlynum = '$faimlynum' ",$con); +$name = mysqli_query($con,"SELECT * FROM iphs.students WHERE faimlynum = '$faimlynum' "); -while($std = mysql_fetch_array($name)){ echo $std["class"].", ";} +while($std = mysqli_fetch_array($name)){ echo $std["class"].", ";} echo ""; echo ""; @@ -114,8 +114,8 @@ } /* -$insert = mysql_query("INSERT INTO iphs.students (name, class, regnum, faimlynum, admission, tuition, sports, building, medical, recreation, examination, buscharge)VALUES('$name', '$class', '$regnum', '$faimlynum', '$admission', '$tuition', '$sports', '$building', '$medical', '$recreation', '$examination', '$buscharge')",$con); -if($insert){echo "Data Entered";}else{echo "Data not Entered
".mysql_error();}*/ +$insert = mysqli_query($con,"INSERT INTO iphs.students (name, class, regnum, faimlynum, admission, tuition, sports, building, medical, recreation, examination, buscharge)VALUES('$name', '$class', '$regnum', '$faimlynum', '$admission', '$tuition', '$sports', '$building', '$medical', '$recreation', '$examination', '$buscharge')"); +if($insert){echo "Data Entered";}else{echo "Data not Entered
".mysqli_error();}*/ } else{ echo "Home - View/Print Slips diff --git a/updateallbuilding.php b/updateallbuilding.php index 14b7c60..2dba276 100644 --- a/updateallbuilding.php +++ b/updateallbuilding.php @@ -15,13 +15,13 @@

Update All Students Building Fund

". mysql_error(); +echo "Data not updated
". mysqli_error(); } diff --git a/updateallbuscharge.php b/updateallbuscharge.php index 2c29cdd..8457f4a 100644 --- a/updateallbuscharge.php +++ b/updateallbuscharge.php @@ -15,13 +15,13 @@

Update All Students Bus Charges

". mysql_error(); +echo "Data not updated
". mysqli_error(); } diff --git a/updateallexamination.php b/updateallexamination.php index fb9e63f..8fb6810 100644 --- a/updateallexamination.php +++ b/updateallexamination.php @@ -15,13 +15,13 @@

Update All Students Examination Fee

". mysql_error(); +echo "Data not updated
". mysqli_error(); } diff --git a/updateallgenerator.php b/updateallgenerator.php index ea3806f..500aee2 100644 --- a/updateallgenerator.php +++ b/updateallgenerator.php @@ -15,13 +15,13 @@

Update All Students Generator Fee

". mysql_error(); +echo "Data not updated
". mysqli_error(); } diff --git a/updateallmedical.php b/updateallmedical.php index 3f5fa2b..e1b6076 100644 --- a/updateallmedical.php +++ b/updateallmedical.php @@ -15,13 +15,13 @@

Update All Students Medical Fee

". mysql_error(); +echo "Data not updated
". mysqli_error(); } diff --git a/updateallrecreation.php b/updateallrecreation.php index 80b2911..ebcb8d7 100644 --- a/updateallrecreation.php +++ b/updateallrecreation.php @@ -15,13 +15,13 @@

Update All Students Recreation Fund

". mysql_error(); +echo "Data not updated
". mysqli_error(); } diff --git a/updatealltution.php b/updatealltution.php index 2bc6e8f..281d7f3 100644 --- a/updatealltution.php +++ b/updatealltution.php @@ -15,13 +15,13 @@

Update All Students Tuition Fee

". mysql_error(); +echo "Data not updated
". mysqli_error(); } diff --git a/updateclassbuilding.php b/updateclassbuilding.php index c8fdc43..df2ddeb 100644 --- a/updateclassbuilding.php +++ b/updateclassbuilding.php @@ -15,14 +15,14 @@

Update Class Building Fund

". mysql_error(); +echo "Data not updated
". mysqli_error(); } diff --git a/updateclassbuscharge.php b/updateclassbuscharge.php index 6d51805..0cc46eb 100644 --- a/updateclassbuscharge.php +++ b/updateclassbuscharge.php @@ -15,14 +15,14 @@

Update Class Bus Charges

". mysql_error(); +echo "Data not updated
". mysqli_error(); } diff --git a/updateclassexamination.php b/updateclassexamination.php index 37454d6..6811817 100644 --- a/updateclassexamination.php +++ b/updateclassexamination.php @@ -15,14 +15,14 @@

Update Class Examination Fee

". mysql_error(); +echo "Data not updated
". mysqli_error(); } diff --git a/updateclassgenerator.php b/updateclassgenerator.php index cb57940..28f205d 100644 --- a/updateclassgenerator.php +++ b/updateclassgenerator.php @@ -15,14 +15,14 @@

Update Class Generator Fee

". mysql_error(); +echo "Data not updated
". mysqli_error(); } diff --git a/updateclassmedical.php b/updateclassmedical.php index 1d62b48..d6ff034 100644 --- a/updateclassmedical.php +++ b/updateclassmedical.php @@ -15,14 +15,14 @@

Update Class Medical Fee

". mysql_error(); +echo "Data not updated
". mysqli_error(); } diff --git a/updateclassrecreation.php b/updateclassrecreation.php index c3cadea..635e878 100644 --- a/updateclassrecreation.php +++ b/updateclassrecreation.php @@ -15,14 +15,14 @@

Update Class Recreation Fund

". mysql_error(); +echo "Data not updated
". mysqli_error(); } diff --git a/updateclasstution.php b/updateclasstution.php index 813d92e..8f1c164 100644 --- a/updateclasstution.php +++ b/updateclasstution.php @@ -15,14 +15,14 @@

Update Class Tuition Fee

". mysql_error(); +echo "Data not updated
". mysqli_error(); } diff --git a/updatefamilybuilding.php b/updatefamilybuilding.php index 764801f..8ff39a1 100644 --- a/updatefamilybuilding.php +++ b/updatefamilybuilding.php @@ -15,14 +15,14 @@

Update Family Building Fund

". mysql_error(); +echo "Data not updated
". mysqli_error(); } diff --git a/updatefamilybuscharge.php b/updatefamilybuscharge.php index dbaf6ed..6e67db0 100644 --- a/updatefamilybuscharge.php +++ b/updatefamilybuscharge.php @@ -15,14 +15,14 @@

Update Family Bus Charges

". mysql_error(); +echo "Data not updated
". mysqli_error(); } diff --git a/updatefamilyexamination.php b/updatefamilyexamination.php index 101c5a8..f45dde0 100644 --- a/updatefamilyexamination.php +++ b/updatefamilyexamination.php @@ -15,14 +15,14 @@

Update Family Examination Fee

". mysql_error(); +echo "Data not updated
". mysqli_error(); } diff --git a/updatefamilygenerator.php b/updatefamilygenerator.php index 84540c7..eb7457f 100644 --- a/updatefamilygenerator.php +++ b/updatefamilygenerator.php @@ -15,14 +15,14 @@

Update Family Generator Fee

". mysql_error(); +echo "Data not updated
". mysqli_error(); } diff --git a/updatefamilymedical.php b/updatefamilymedical.php index c26cb79..fa77dae 100644 --- a/updatefamilymedical.php +++ b/updatefamilymedical.php @@ -15,14 +15,14 @@

Update Family Medical Fee

". mysql_error(); +echo "Data not updated
". mysqli_error(); } diff --git a/updatefamilyrecreation.php b/updatefamilyrecreation.php index 8947ecc..e4f937b 100644 --- a/updatefamilyrecreation.php +++ b/updatefamilyrecreation.php @@ -15,14 +15,14 @@

Update Family Recreation Fund

". mysql_error(); +echo "Data not updated
". mysqli_error(); } diff --git a/updatefamilytution.php b/updatefamilytution.php index c816179..42a81de 100644 --- a/updatefamilytution.php +++ b/updatefamilytution.php @@ -15,14 +15,14 @@

Update Family Tuition Fee

". mysql_error(); +echo "Data not updated
". mysqli_error(); } diff --git a/viewpaymentbyfn.php b/viewpaymentbyfn.php index ddf6e7e..daceac7 100644 --- a/viewpaymentbyfn.php +++ b/viewpaymentbyfn.php @@ -15,22 +15,22 @@

View Payments by Family Number

Back to Slip";} -$fndata = mysql_query("SELECT * FROM iphs.slips WHERE faimlynum = $fn",$con); +$fndata = mysqli_query($con,"SELECT * FROM iphs.slips WHERE faimlynum = $fn"); echo ""; -while($row = mysql_fetch_array($fndata)){ +while($row = mysqli_fetch_array($fndata)){ $id = $row["id"]; -$paid = mysql_fetch_array(mysql_query("SELECT SUM(amount) AS amount FROM iphs.payments WHERE srno = $id",$con)); +$paid = mysqli_fetch_array(mysqli_query($con,"SELECT SUM(amount) AS amount FROM iphs.payments WHERE srno = $id",$con); if($row["total"] - $paid["amount"]>0){echo "";} else {echo "";} @@ -72,9 +72,9 @@ echo ""; echo "
Slip Sr. No.Fee MonthAmountPaidBalance
"; echo "
"; -}} +} +} else{ echo ""; -$stddata = mysql_query("SELECT * FROM iphs.students",$con); -while($row = mysql_fetch_array($stddata)){ +$stddata = mysqli_query($con, "SELECT * FROM iphs.students"); +while($row = mysqli_fetch_array($stddata)){ $id = $row["id"];
Reg. NumNameClassFamily NoAdmissionTuitionGeneratorBuildingMedicalRecreationExaminationBuschargeActiveEdit