-
Notifications
You must be signed in to change notification settings - Fork 0
/
details.php
89 lines (61 loc) · 2.53 KB
/
details.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
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<?php $browser = $_SERVER['HTTP_USER_AGENT']; ?>
<?php if (strstr($browser, "MSIE")) { ?>
<link rel="stylesheet" href="stylesheets/articleIEstyle.css" type="text/css" media="screen" />
<?php }else{ ?>
<link rel="stylesheet" href="stylesheets/articlestyle.css" type="text/css" media="screen" />
<?php } ?>
<?php include("include/header.php"); ?>
<div id="firstd"> </div>
<div id="middle">
<div id="title"> <span class="t">
<?php
if(isset($_GET['id']))
{
$a=$_GET['id'];
$statement = $mysqli->prepare("SELECT * FROM lands WHERE id=?");
$statement->bind_param('i', $a);
$statement->execute() or die($mysqli->error);
$result = $statement->get_result();
$row = $result->fetch_array();
echo $row['1'];
}
else
{
header("location:index.php");
}
?>
</span></div>
<div id="social">
<ul>
<li class="a1"> </li>
<a href="https://twitter.com/share?url=http://google.com&text=hh" class="custom-tweet-button" data-related="anywhere:The Javascript API,sitestreams,twitter:The official account" data-count="vertical" target="_blank"><li class="a2"> </li></a>
<li class="a3"> </li>
</ul>
</div>
<div style="clear:both;"></div>
<?php
if(isset($_GET['id']))
{
echo "<div id='content'>";
$a=$_GET['id'];
$statement = $mysqli->prepare("SELECT * FROM lands WHERE id=?");
$statement->bind_param('i', $a);
$statement->execute() or die($mysqli->error);
$result = $statement->get_result();
$row=$result->fetch_array();
echo $row['2'];
echo "</div>";
}
else
{
header("location:index.php");
}
?>
</div>
<div id="last"> </div>
<?php include("include/footer.php"); ?>
</body>
</html>