-
Notifications
You must be signed in to change notification settings - Fork 0
/
profile.php
120 lines (117 loc) · 4.52 KB
/
profile.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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
<?php
session_start();
error_reporting(1);
include('connection.php');
$eid=$_SESSION['create_account_logged_in'];
extract($_REQUEST);
if(isset($update))
{
$que="update create_account set id='$id' name='$fname',password='$pass',mobile='$mob',address='$add' where email='$eid'";
mysqli_query($con,$que);
$msg= "<h3 style='color:blue'>Profile Updated successfully</h3>";
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<title>La Velle</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.0/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.0/js/bootstrap.min.js"></script>
<link href="css/style.css"rel="stylesheet"/>
<link href="https://fonts.googleapis.com/css?family=Lobster" rel="stylesheet">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<link href="https://fonts.googleapis.com/css?family=Baloo+Bhai" rel="stylesheet">
</head>
<body style="margin-top:50px;">
<?php
include('Menu Bar.php');
?>
<?php
$sql= mysqli_query($con,"select * from create_account where email='$eid' ");
$result=mysqli_fetch_assoc($sql);
?>
<div class="container-fluid"id="primary"><!--Primary Id-->
<center><h1 style="background-color:#ed2553;border-radius:50px;font-family: 'Baloo Bhai', cursive;box-shadow:5px 5px 9px blue;text-shadow:2px 2px#000;display:inline-block;">User Profile</h1></center><br>
<div class="container">
<div class="row">
<center><?php echo $msg; ?></center>
<form class="form-horizontal" method="post">
<div class="col-sm-6">
<div class="form-group">
<div class="row">
<div class="control-label col-sm-4"><h4>ID:</h4></div>
<div class="col-sm-8">
<input type="text" name="pass" value="<?php echo $result['id']; ?>"class="form-control"/>
</div>
</div>
</div>
<div class="form-group">
<div class="row">
<div class="control-label col-sm-4"><h4> Name :</h4></div>
<div class="col-sm-8">
<input type="text" name="name" value="<?php echo $result['name']; ?>"class="form-control"/>
</div>
</div>
</div>
<div class="form-group">
<div class="row">
<div class="control-label col-sm-4"><h4>Email-Id:</h4></div>
<div class="col-sm-8">
<input type="text" value="<?php echo $result['email']; ?>"class="form-control"/readonly="readonly">
</div>
</div>
</div>
<div class="form-group">
<div class="row">
<div class="control-label col-sm-4"><h4>Password:</h4></div>
<div class="col-sm-8">
<input type="text" name="pass" value="<?php echo $result['password']; ?>"class="form-control"/>
</div>
</div>
</div>
<div class="form-group">
<div class="row">
<div class="control-label col-sm-4"><h4>Mobile:</h4></div>
<div class="col-sm-8">
<input type="text" name="mob" value="<?php echo $result['mobile']; ?>"class="form-control"/>
</div>
</div>
</div>
<div class="form-group">
<div class="row">
<div class="control-label col-sm-4"><h4>Address:</h4></div>
<div class="col-sm-8">
<input type="text" name="add" value="<?php echo $result['address']; ?>"class="form-control"/>
</div>
</div>
</div>
<div class="form-group">
<div class="row">
<div class="control-label col-sm-4"><h4>Gender:</h4></div>
<div class="col-sm-8">
<strong><?php echo $result['gender']; ?></strong>
</div>
</div>
</div>
<div class="form-group">
<div class="row">
<div class="control-label col-sm-5"></div>
<div class="col-sm-7 ">
<input type="submit" value="Update Profile" name="update" class="btn btn-primary"/>
</div>
</div>
</div>
</div>
<!--User Profile Update Query-->
</form>
</div>
</div>
</div>
<?php
include('Footer.php')
?>
</body>
</html>