Skip to content

Commit

Permalink
Database Connection Extablished
Browse files Browse the repository at this point in the history
  • Loading branch information
mnadeemasghar committed Jun 20, 2021
1 parent 37b3583 commit ec5c904
Show file tree
Hide file tree
Showing 41 changed files with 103 additions and 115 deletions.
3 changes: 3 additions & 0 deletions .vs/ProjectSettings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"CurrentProjectSetting": null
}
7 changes: 7 additions & 0 deletions .vs/VSWorkspaceState.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"ExpandedNodes": [
"",
"\\class"
],
"PreviewInSolutionExplorer": false
}
Binary file added .vs/fee-collection-system/v16/.suo
Binary file not shown.
Binary file added .vs/slnx.sqlite
Binary file not shown.
3 changes: 1 addition & 2 deletions bulkupdatestd.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@

<html>
<head>
<title>Islamic Public School Fee System</title>
<link href="style.css" rel="stylesheet" type="text/css">
<?php require "header.php"; ?>
</head>
<body>
<div class=wraper>
Expand Down
9 changes: 9 additions & 0 deletions class/db.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
class db{
$con = mysqli_connect("localhost","root","","iphs");
if(!$con){
echo "Unable to Connect". mysqli_error();
}
else {
return $con;
}
}
5 changes: 2 additions & 3 deletions createslips.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@

<html>
<head>
<title>Islamic Public School Fee System</title>
<link href="style.css" rel="stylesheet" type="text/css">
<?php require "header.php"; ?>
</head>
<body>
<div class=wraper>
Expand All @@ -29,7 +28,7 @@
</form>
<?php
if(isset($_POST["submit"])){
$con = mysqli_connect("localhost","root","root","iphs");
$con = mysqli_connect("localhost","root","","iphs");
if(!$con){echo "Unable to Connect". mysqli_error();}


Expand Down
5 changes: 2 additions & 3 deletions edtstd.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@

<html>
<head>
<title>Islamic Public School Fee System</title>
<link href="style.css" rel="stylesheet" type="text/css">
<?php require "header.php"; ?>
</head>
<body>
<div class=wraper>
Expand All @@ -18,7 +17,7 @@

if ($_POST["submit"]=='Update'){

$con = mysqli_connect("localhost","root","root","iphs");
$con = mysqli_connect("localhost","root","","iphs");
if(!$con){echo "Unable to Connect". mysqli_error();}


Expand Down
2 changes: 2 additions & 0 deletions header.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
<title>Fee System</title>
<link href="style.css" rel="stylesheet" type="text/css">
3 changes: 1 addition & 2 deletions index.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@

<html>
<head>
<title>Islamic Public School Fee System</title>
<link href="style.css" rel="stylesheet" type="text/css">
<?php require "header.php"; ?>
</head>
<body>
<div class=wraper>
Expand Down
5 changes: 2 additions & 3 deletions newfaimly.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@

<html>
<head>
<title>Islamic Public School Fee System</title>
<link href="style.css" rel="stylesheet" type="text/css">
<?php require "header.php"; ?>
</head>
<body>
<div class=wraper>
Expand All @@ -33,7 +32,7 @@
</form>
<?php
if(isset($_POST["submit"])){
$con = mysqli_connect("localhost","root","root","iphs");
$con = mysqli_connect("localhost","root","","iphs");
if(!$con){echo "Unable to Connect". mysqli_error();}
/*
$_SESSION["email"] =
Expand Down
38 changes: 19 additions & 19 deletions newstd.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@

<html>
<head>
<title>Islamic Public School Fee System</title>
<link href="style.css" rel="stylesheet" type="text/css">
<?php require "header.php"; ?>
</head>
<body>
<div class=wraper>
Expand All @@ -22,23 +21,24 @@
</tr>

<tr>
<td>Class</td><td>
<td>Class</td>

<select name=class >
<option value="PG">Play Group</option>
<option value="Nursery">Nursery</option>
<option value="Prep">Prep</option>
<option value="1st">1st</option>
<option value="2nd">2nd</option>
<option value="3rd">3rd</option>
<option value="4th">4th</option>
<option value="5th">5th</option>
<option value="6th">6th</option>
<option value="7th">7th</option>
<option value="8th">8th</option>
<option value="9th">9th</option>
<option value="10th">10th</option>
</select>
<td>
<select name=class >
<option value="PG">Play Group</option>
<option value="Nursery">Nursery</option>
<option value="Prep">Prep</option>
<option value="1st">1st</option>
<option value="2nd">2nd</option>
<option value="3rd">3rd</option>
<option value="4th">4th</option>
<option value="5th">5th</option>
<option value="6th">6th</option>
<option value="7th">7th</option>
<option value="8th">8th</option>
<option value="9th">9th</option>
<option value="10th">10th</option>
</select>

</td>
</tr>
Expand Down Expand Up @@ -99,7 +99,7 @@
</form>
<?php
if(isset($_POST["submit"])){
$con = mysqli_connect("localhost","root","root","iphs");
$con = mysqli_connect("localhost","root","","iphs");
if(!$con){echo "Unable to Connect". mysqli_error();}
/*
$_SESSION["email"] =
Expand Down
7 changes: 3 additions & 4 deletions payment.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@

<html>
<head>
<title>Islamic Public School Fee System</title>
<link href="style.css" rel="stylesheet" type="text/css">
<?php require "header.php"; ?>
</head>
<body>
<div class=wraper>
Expand All @@ -31,7 +30,7 @@


if(isset($_POST["submit"]) || isset($_GET["slip"])){
$con = mysqli_connect("localhost","root","root","iphs");
$con = mysqli_connect("localhost","root","","iphs");
if(!$con){echo "Unable to Connect". mysqli_error();}

if($submit='View'){
Expand Down Expand Up @@ -94,7 +93,7 @@
echo "</td></tr></table>";
}
if(isset($_POST["submit"])){
$con = mysqli_connect("localhost","root","root","iphs");
$con = mysqli_connect("localhost","root","","iphs");
if(!$con){echo "Unable to Connect". mysqli_error();}

if (isset($_POST["amount"])) {
Expand Down
6 changes: 3 additions & 3 deletions printslips.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@

<html>
<head>
<title>Islamic Public School Fee System</title>
<?php if(isset($_GET["submit"])) { echo "<link href=head.css rel=stylesheet type= text/css >"; } else { echo "<link href=style.css rel=stylesheet type= text/css >";}?>
<?php require "header.php"; ?>
<?php if(isset($_GET["submit"])) { echo "<link href=head.css rel=stylesheet type= text/css >"; } ?>
</head>
<body>
<div class=wraper>
<?php
if(isset($_GET["submit"])){
$con = mysqli_connect("localhost","root","root","iphs");
$con = mysqli_connect("localhost","root","","iphs");
if(!$con){echo "Unable to Connect". mysqli_error();}


Expand Down
Binary file modified sliphead.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 2 additions & 3 deletions updateallbuilding.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@

<html>
<head>
<title>Islamic Public School Fee System</title>
<link href="style.css" rel="stylesheet" type="text/css">
<?php require "header.php"; ?>
</head>
<body>
<div class=wraper>
Expand All @@ -15,7 +14,7 @@
<h2>Update All Students Building Fund</h2>

<?php
$con = mysqli_connect("localhost","root","root","iphs");
$con = mysqli_connect("localhost","root","","iphs");
if(!$con){echo "Unable to Connect". mysqli_error();}

if(isset($_POST["update"])){
Expand Down
5 changes: 2 additions & 3 deletions updateallbuscharge.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@

<html>
<head>
<title>Islamic Public School Fee System</title>
<link href="style.css" rel="stylesheet" type="text/css">
<?php require "header.php"; ?>
</head>
<body>
<div class=wraper>
Expand All @@ -15,7 +14,7 @@
<h2>Update All Students Bus Charges</h2>

<?php
$con = mysqli_connect("localhost","root","root","iphs");
$con = mysqli_connect("localhost","root","","iphs");
if(!$con){echo "Unable to Connect". mysqli_error();}

if(isset($_POST["update"])){
Expand Down
5 changes: 2 additions & 3 deletions updateallexamination.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@

<html>
<head>
<title>Islamic Public School Fee System</title>
<link href="style.css" rel="stylesheet" type="text/css">
<?php require "header.php"; ?>
</head>
<body>
<div class=wraper>
Expand All @@ -15,7 +14,7 @@
<h2>Update All Students Examination Fee</h2>

<?php
$con = mysqli_connect("localhost","root","root","iphs");
$con = mysqli_connect("localhost","root","","iphs");
if(!$con){echo "Unable to Connect". mysqli_error();}

if(isset($_POST["update"])){
Expand Down
5 changes: 2 additions & 3 deletions updateallgenerator.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@

<html>
<head>
<title>Islamic Public School Fee System</title>
<link href="style.css" rel="stylesheet" type="text/css">
<?php require "header.php"; ?>
</head>
<body>
<div class=wraper>
Expand All @@ -15,7 +14,7 @@
<h2>Update All Students Generator Fee</h2>

<?php
$con = mysqli_connect("localhost","root","root","iphs");
$con = mysqli_connect("localhost","root","","iphs");
if(!$con){echo "Unable to Connect". mysqli_error();}

if(isset($_POST["update"])){
Expand Down
5 changes: 2 additions & 3 deletions updateallmedical.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@

<html>
<head>
<title>Islamic Public School Fee System</title>
<link href="style.css" rel="stylesheet" type="text/css">
<?php require "header.php"; ?>
</head>
<body>
<div class=wraper>
Expand All @@ -15,7 +14,7 @@
<h2>Update All Students Medical Fee</h2>

<?php
$con = mysqli_connect("localhost","root","root","iphs");
$con = mysqli_connect("localhost","root","","iphs");
if(!$con){echo "Unable to Connect". mysqli_error();}

if(isset($_POST["update"])){
Expand Down
5 changes: 2 additions & 3 deletions updateallrecreation.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@

<html>
<head>
<title>Islamic Public School Fee System</title>
<link href="style.css" rel="stylesheet" type="text/css">
<?php require "header.php"; ?>
</head>
<body>
<div class=wraper>
Expand All @@ -15,7 +14,7 @@
<h2>Update All Students Recreation Fund</h2>

<?php
$con = mysqli_connect("localhost","root","root","iphs");
$con = mysqli_connect("localhost","root","","iphs");
if(!$con){echo "Unable to Connect". mysqli_error();}

if(isset($_POST["update"])){
Expand Down
5 changes: 2 additions & 3 deletions updatealltution.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@

<html>
<head>
<title>Islamic Public School Fee System</title>
<link href="style.css" rel="stylesheet" type="text/css">
<?php require "header.php"; ?>
</head>
<body>
<div class=wraper>
Expand All @@ -15,7 +14,7 @@
<h2>Update All Students Tuition Fee</h2>

<?php
$con = mysqli_connect("localhost","root","root","iphs");
$con = mysqli_connect("localhost","root","","iphs");
if(!$con){echo "Unable to Connect". mysqli_error();}

if(isset($_POST["update"])){
Expand Down
3 changes: 1 addition & 2 deletions updatebyall.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@

<html>
<head>
<title>Islamic Public School Fee System</title>
<link href="style.css" rel="stylesheet" type="text/css">
<?php require "header.php"; ?>
</head>
<body>
<div class=wraper>
Expand Down
4 changes: 1 addition & 3 deletions updatebyclass.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,7 @@

<html>
<head>
<title>Islamic Public School Fee System</title>
<link href="style.css" rel="stylesheet" type="text/css">
</head>
<?php require "header.php"; ?></head>
<body>
<div class=wraper>
<a href=index.php>Home</a> - <a href=bulkupdatestd.php>Update Bulk Students</a> - Update by Class
Expand Down
3 changes: 1 addition & 2 deletions updatebyfamily.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@

<html>
<head>
<title>Islamic Public School Fee System</title>
<link href="style.css" rel="stylesheet" type="text/css">
<?php require "header.php"; ?>
</head>
<body>
<div class=wraper>
Expand Down
5 changes: 2 additions & 3 deletions updateclassbuilding.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@

<html>
<head>
<title>Islamic Public School Fee System</title>
<link href="style.css" rel="stylesheet" type="text/css">
<?php require "header.php"; ?>
</head>
<body>
<div class=wraper>
Expand All @@ -15,7 +14,7 @@
<h2>Update Class Building Fund</h2>

<?php
$con = mysqli_connect("localhost","root","root","iphs");
$con = mysqli_connect("localhost","root","","iphs");
if(!$con){echo "Unable to Connect". mysqli_error();}

if(isset($_POST["update"])){
Expand Down
Loading

0 comments on commit ec5c904

Please sign in to comment.