-
Notifications
You must be signed in to change notification settings - Fork 0
/
aboutme.php
44 lines (31 loc) · 1.03 KB
/
aboutme.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
<?php
require_once 'session.php';
require_once 'config.php';
include_once 'include/header.php';
echo ' <meta name="viewport" content="width=device-width, initial-scale=1.0">';
echo '<body style="background-image: linear-gradient(to right, red,blue);">';
?>
<?php
if(isset($_SESSION['user'])){
$sql= "SELECT * FROM info WHERE email= ? LIMIT 1";
$stmtselect= $db->prepare($sql);
$result= $stmtselect->execute([$_SESSION['user']]);
while ($r = $stmtselect->fetch()) {
echo '<br><br><div class="container">';
echo '<div class="card" style="background-color:rgba(0,0,0,0.0);color:#FFFFFF">';
echo '<div class="card-body" >';
echo '<h1 class="card-title" style="">'.$r['fname'].' '.$r['lname'].'</h5>';
echo '<p class="card-text">Email:'.$r['email'].'<br>Contact No:'.$r['pno'].'</p><br></div></div></div>';
}
if(!$stmtselect->rowCount()>0){
alert('error finding user');
}
}
else{
header('location:index.php');
}
?>
<?php
echo '</body>';
include_once 'include/footer.php';
?>