-
Notifications
You must be signed in to change notification settings - Fork 0
/
Daycareprofile.php
96 lines (67 loc) · 2.42 KB
/
Daycareprofile.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
<?php
session_start();
include 'dsignin.php';
$conn = new mysqli('localhost', 'root', '', 'daycaredb');
$sql = "SELECT * FROM daycare WHERE u_ID=? LIMIT 1";
$result = $conn->prepare($sql);
$result->bind_param('i', $userID);
if ($result->execute()) {
$retrieve = $result->get_result();
$data = $retrieve->fetch_assoc();
$email = $data['email'];
$username = $data['user_name'];
$phone = $data['phone'];
$address = $data['address'];
$current_capacity = $data['current_capacity'];
$fee = $data['fee'];
$img_id = $data['img_id'];
$_SESSION['$userID']=$data['userID'];
}
else
echo "Query couldn't get executed";
?>
<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<meta charset="utf-8">
<title>Profile</title>
<link href="css/jquery.bxslider.css" rel="stylesheet" />
<link href="style.css" rel="stylesheet">
<link href="css/font-awesome.min.css" rel="stylesheet"/>
<link rel="shortcut icon" type="image/png" href="img/icons/favicon.png"/>
</head>
<link rel="stylesheet" href="profiles.css">
<body>
<body style="background-image: url(uploads/daycareprofile.jpg)">
<header>
<div class="container">
<div id="branding">
<a href="Daycareprofile.html"><h1>Kid Care!</h1></a>
</div>
<nav>
<ul>
<li><a href="postOffer.html"><button class="button">Post Offer</button></a></li>
<li><a href="deditprofile.html"><button class="button">Edit Profile</button></a></li>
<li><a href="Message.html"><button class="button">Message</button></a></li>
<li><a href="index.html"><button class="button">Sing Out</button></a></li>
</ul>
</nav>
</div>
</header>
<div class="card">
<img src="uploads/userpic.png" alt="Rusafa" style="width:35%">
<body style=" background-color: #000000">
<h1><?php echo $username; ?></h1>
<p class="title">Day Care</p>
<p><?php echo $address ?></p>
<p><?php echo $phone; ?></p>
<p><?php echo $email; ?></p>
<p><?php echo $current_capacity; ?></p>
<p><?php echo $fee; ?></p>
<a href="#"><i class="fa fa-Email"></i></a>
<a href="#"><i class="fa fa-linkedin"></i></a>
<a href="#"><i class="fa fa-facebook"></i></a>
<p><button>Contact</button></p>
</div>
</body>
</html>