-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.php
executable file
·53 lines (37 loc) · 1.02 KB
/
index.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
<!DOCTYPE HTML>
<html lang="en-US">
<head>
<meta http-equiv="Content-type" content="text/html; charset=utf-8"/>
<title>Four Season Resort</title>
<link href="css/style.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<?php
include('header.php');
include ('admin/dbcon.php');
$query="SELECT * FROM `logo` WHERE `id`='1'";
$run=mysqli_query($con,$query);
$data=mysqli_fetch_assoc($run);
?>
<div class="main-content">
<div class="left-content">
<?php echo '<img src="images/'.$data['image'].'" height="400px" width="100%"/>';?>
</div>
<div class="right-content">
<?php
$query="SELECT `title` , `title1` , `content` FROM `home` WHERE `id`='1'";
$run=mysqli_query($con,$query);
$data=mysqli_fetch_assoc($run);
if($run==true){
echo '<h2>'.$data['title'].'</h2>';
echo '<h3>'.$data['title1'].'</h3>';
echo '<p>'.$data['content'].'</p>';
}
?>
</div>
</div>
<?php
include('footer.php');
?>
</body>
</html>