Skip to content

Commit

Permalink
Fixed all the Bugs.
Browse files Browse the repository at this point in the history
  • Loading branch information
ChandanShastri committed Dec 7, 2018
1 parent 0606d7a commit 3635280
Show file tree
Hide file tree
Showing 11 changed files with 16 additions and 10 deletions.
5 changes: 3 additions & 2 deletions Assignment_Management_System/add.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

<?php
session_start();
error_reporting(0);
if(isset($_SESSION['admin'])){
include "config.php";

Expand All @@ -20,10 +21,10 @@
$result = mysqli_query($sccon,$event);
if($result==1)
{
echo "<br><b>Successfully Added the Assignment</b>";
echo "<br><center><b>Successfully Added the Assignment</b></center>";
}
else
echo "<br>Assignment already exists...!";
echo "<br><center><b>Something Went Wrong..!</b></center>";



Expand Down
2 changes: 1 addition & 1 deletion Assignment_Management_System/addmember.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<?php

include "config.php";

error_reporting(0);
if(isset($_POST['name']))
{

Expand Down
5 changes: 3 additions & 2 deletions Assignment_Management_System/config.php
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
<?php
$sccon=mysqli_connect('localhost','cs','Chandan@123','Chandan_Shastri_Gen2');
?>
error_reporting(0);
$sccon=mysqli_connect('localhost','cs','Chandan@123','Chandan_Shastri_Gen2');
?>
2 changes: 1 addition & 1 deletion Assignment_Management_System/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<script src="js/bs.js"></script>
</head>
<?php
//error_reporting(0);
error_reporting(0);
session_start();
unset($_SESSION['admin']);

Expand Down
2 changes: 1 addition & 1 deletion Assignment_Management_System/login.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@


<?php
//error_reporting(0);
error_reporting(0);
session_destroy();
include "config.php";

Expand Down
1 change: 1 addition & 0 deletions Assignment_Management_System/marks.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<?php
include 'config.php';
error_reporting(0);
session_start();

if(isset($_SESSION['admin'])){
Expand Down
2 changes: 1 addition & 1 deletion Assignment_Management_System/memlogin.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@


<?php
//error_reporting(0);
error_reporting(0);
session_destroy();
include "config.php";

Expand Down
3 changes: 2 additions & 1 deletion Assignment_Management_System/pdf.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<?php

include "config.php";
error_reporting(0);
session_start();

if(isset($_GET['q'])){
Expand Down Expand Up @@ -32,7 +33,7 @@


$event="SELECT * FROM uploads where assg_no='".$t."'";

$result = mysqli_query($sccon,$event);


Expand Down
1 change: 1 addition & 0 deletions Assignment_Management_System/submissions.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@

<?php
session_start();
error_reporting(0);
if(isset($_SESSION['admin'])){
include "config.php";

Expand Down
2 changes: 1 addition & 1 deletion Assignment_Management_System/ups.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
include 'config.php';
session_start();


error_reporting(0);


$subject= $_POST['subject'];
Expand Down
1 change: 1 addition & 0 deletions Assignment_Management_System/view.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
<body><center><h3>All Assignments</h3><br>
<?php
include "config.php";
error_reporting(0);
session_start();
if($_SESSION['msg']=='N'){
echo "<script>alert('Successfully Uploaded the Assignment')</script>";
Expand Down

0 comments on commit 3635280

Please sign in to comment.