-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathedit.php
94 lines (70 loc) · 2.9 KB
/
edit.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
<!doctype html>
<html>
<head>
<?php include 'head.php';
echo "<title>Update Records | SMART HEALTH ADVISOR</title>
<link rel='stylesheet' href='css/edit.css' type='text/css'>";?>
<body>
<div id="container"><!--Container Starts-->
<div id="header">
<a href="home.php"><img src="img/icon.jpg" alt="SHA logo" id="logo5"></a>
<img src="img/SHA_Plate2.PNG" alt="SHA_Plate" id="SHA">
<div id="navigation">
<ul id="" >
<li><a href="Home.php">Home</a></li>
<li><a href="link">Services</a> <ul>
<li><a href="map2.php">Search Emergency Services</a></li>
<li><a href="medicine.php">Search Medicines </a></li>
</ul>
</li>
<li><a href="http://www.healthycalculators.com/">Calculators</a>
<ul>
<li><a href="Bmi.php">BMI Calculator</a></li>
<li><a href="heart_rate.php" target=_blank>Target Heart Rate</a></li>
<li><a href="fat.php" target=_blank>Body Fat Calculator</a></li>
<li><a href="http://www.healthycalculators.com/blood-donation.php" target=_blank>Blood Donation Calculator</a></li>
<li><a href="http://www.healthycalculators.com/">Others</a></li>
</ul>
</li>
<li><a href="profile.php">Profile</a></li>
<li><a href="logout.php">LogOut</a>
</ul>
</div>
</div>
<!--====== header ends here====-->
<div id="middle">
<!--<div id="leftColumn"></div>
<div id="centre"><!-- record page starts here -->
<?php
session_start();
$username=$_SESSION['username'];
$con=mysql_connect("localhost","root","");
mysql_select_db("registration",$con);
$sql="SELECT * FROM users WHERE username='$username'";
$records=mysql_query($sql,$con);
while($row=mysql_fetch_array($records))
{
echo "
<form action='update.php' method='post'>
<div id='form_top'>
<h3>Records</h3>
</div>
<div class='input-group'>Name:<input type=text name=pname value='".$row['username']."'></div>
<div class='input-group'>Email:<input type=text name=email value='".$row['email']."'></div>
<div class='input-group'>Phone No:<input type=text name=pno value='".$row['phone_no']."'></div>
<div class='input-group'>Date of Birth:<input type=text name=dob value='".$row['dob']."'></div>
<div class='input-group'>Country:<input type=text name=country value='".$row['country']."'></div>
<div class='input-group'>City:<input type=text name=city value='".$row['city']."'></div>
<div class='input-group'>Age:<input type=text name=age value='".$row['age']."'></div>
<div class='input-group'><input type=hidden name=id value='".$row['Id']."'></div>
<div class='input-group' style='margin-top:-10px;'><input type=submit ></div>
</form>";
}
?>
</div>
<!--<div id="rightColumn"></div>
</div>-->
<?php include 'footer.php'; ?>
</div><!--Container Ends-->
</body>
</html>