-
Notifications
You must be signed in to change notification settings - Fork 56
/
Copy pathcode-x.php
64 lines (51 loc) · 1.48 KB
/
code-x.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
<!DOCTYPE html>
<html>
<head>
<title>Hotelsng User Profile </title>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<link rel="stylesheet" href="./profilecss.css">
<link href="https://fonts.googleapis.com/css?family=Ubuntu" rel="stylesheet">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
</head>
<body>
<h1> Hotelsng </br>User Profile for </br> Code-X
</h1>
<div class="row">
<div class="column">
CONTENT1 </br>
<a href="https://www.facebook.com/engrify"><i class="fab fa-facebook-square"></i></a>
<a href="https://twitter.com/IfeanyiOghene"> <i class="fab fa-twitter-square"></i></a>
<a href="https://www.instagram.com/davidify/"> <i class="fab fa-instagram"></i></a>
<a href="https://github.com/DavidIfeanyichukwu"> <i class="fab fa-github-square"></i></a>
</div>
<div class="column">
<?php
$con=mysqli_connect("localhost","codex","MerCury@001","hng_fun");
// Check connection
if (mysqli_connect_errno())
{
echo "Failed to connect to MySQL: " . mysqli_connect_error();
}
$sql="SELECT name,username,image_filename FROM interns_data ORDER BY name";
if ($result=mysqli_query($con,$sql))
{
// Fetch one and one row
while ($row=mysqli_fetch_row($result))
{
printf ("%s (%s)\n",$row[0],$row[1]);
}
// Free result set
mysqli_free_result($result);
}
{
echo "
Name: $name
Username: $username
";
}
mysqli_close($con);
?>
</div>
</div>
</body>
</html>