Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions admin-panel.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
<?php
include('func.php');
include('newfunc.php');
$con=mysqli_connect("localhost","root","","myhmsdb");
include('connect.php');



$pid = $_SESSION['pid'];
Expand Down Expand Up @@ -418,7 +419,7 @@ function clickDiv(id) {
</label></div>
<div class="col-md-8">
<!-- <div id="docFees">Select a doctor</div> -->
<input class="form-control" type="text" name="docFees" id="docFees" readonly="readonly"/>
<input class="form-control" type="text" name="docFees" id="docFees" readonly/>
</div><br><br>

<div class="col-md-4"><label>Appointment Date</label></div>
Expand Down
4 changes: 4 additions & 0 deletions connect.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<?php
$con=mysqli_connect("localhost","root","legend","myhmsdb") or die(mysql_error());

?>
2 changes: 1 addition & 1 deletion func.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php
session_start();
$con=mysqli_connect("localhost","root","","myhmsdb");
include('connect.php');
if(isset($_POST['patsub'])){
$email=$_POST['email'];
$password=$_POST['password2'];
Expand Down
2 changes: 1 addition & 1 deletion func2.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php
session_start();
$con=mysqli_connect("localhost","root","","myhmsdb");
include('connect.php');
if(isset($_POST['patsub1'])){
$fname=$_POST['fname'];
$lname=$_POST['lname'];
Expand Down