-
Notifications
You must be signed in to change notification settings - Fork 0
/
all.php
91 lines (88 loc) · 3.56 KB
/
all.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
<?php include 'header.php'; ?>
<html>
<head>
<title>Mod cùng Ken Play girl</title>
</head>
<body>
<div class="content-box">
<div class="newStatus">
<div class="title">
<h3>NGỌC RỒNG ONLINE</h3>
<div class="line"></div>
</div>
<div class="content">
<?php
$noidung = "SELECT ID,Name,Logo,Gia,Day1 FROM baiviet WHERE Type = '1' ORDER BY ID DESC";
$result = mysqli_query($conn, $noidung);
$k = mysqli_fetch_row($result);
$noidung = "SELECT LT.LuotTai FROM luottai AS LT, baiviet AS BV WHERE LT.ID = BV.ID AND BV.Type = '1' ORDER BY LT.ID DESC";
$result2 = mysqli_query($conn, $noidung);
$q = mysqli_fetch_row($result2);
while ($k != 0)
{
if (!isset($k[1]))
break;
$dayup = explode("-",$k[4])[2]."/".explode("-",$k[4])[1]."/".explode("-",$k[4])[0];
echo '<div class="item"><a href="post.php?ID='.$k[0].'"><img src="'.$k[2].'"><div class="item-title">'.$k[1].'</div><div class="item-content"><p>Giá : '.$k[3].'</p><p>Lượt tải : '.$q[0].'</p><p>Ngày đăng : '.$dayup.'</p></div><div class="view">Xem thêm</div></a></div>';
$k = mysqli_fetch_row($result);
$q = mysqli_fetch_row($result2);
}
?>
</div>
</div>
<div class="newStatus listGame">
<div class="title">
<h3>HIỆP SĨ ONLINE</h3>
<div class="line"></div>
</div>
<div class="content">
<?php
$noidung = "SELECT ID,Name,Logo,Gia,Day1 FROM baiviet WHERE Type = '2' ORDER BY ID DESC";
$result = mysqli_query($conn, $noidung);
$k = mysqli_fetch_row($result);
$noidung = "SELECT LT.LuotTai FROM luottai AS LT, baiviet AS BV WHERE LT.ID = BV.ID AND BV.Type = '2' ORDER BY LT.ID DESC";
$result2 = mysqli_query($conn, $noidung);
$q = mysqli_fetch_row($result2);
while ($k != 0)
{
if (!isset($k[1]))
break;
$dayup = explode("-",$k[4])[2]."/".explode("-",$k[4])[1]."/".explode("-",$k[4])[0];
echo '<div class="item"><a href="post.php?ID='.$k[0].'"><img src="'.$k[2].'"><div class="item-title">'.$k[1].'</div><div class="item-content"><p>Giá : '.$k[3].'</p><p>Lượt tải : '.$q[0].'</p><p>Ngày đăng : '.$dayup.'</p></div><div class="view">Xem thêm</div></a></div>';
$k = mysqli_fetch_row($result);
$q = mysqli_fetch_row($result2);
}
?>
</div>
</div>
<div class="newStatus listGame listOther">
<div class="title">
<h3>GỌI RỒNG ONLINE</h3>
<div class="line"></div>
</div>
<div class="content">
<?php
$noidung = "SELECT ID,Name,Logo,Gia,Day1 FROM baiviet WHERE Type = '3' ORDER BY ID DESC";
$result = mysqli_query($conn, $noidung);
$k = mysqli_fetch_row($result);
$noidung = "SELECT LT.LuotTai FROM luottai AS LT, baiviet AS BV WHERE LT.ID = BV.ID AND BV.Type = '3' ORDER BY LT.ID DESC";
$result2 = mysqli_query($conn, $noidung);
$q = mysqli_fetch_row($result2);
while ($k != 0)
{
if (!isset($k[1]))
break;
$dayup = explode("-",$k[4])[2]."/".explode("-",$k[4])[1]."/".explode("-",$k[4])[0];
echo '<div class="item"><a href="post.php?ID='.$k[0].'"><img src="'.$k[2].'"><div class="item-title">'.$k[1].'</div><div class="item-content"><p>Giá : '.$k[3].'</p><p>Lượt tải : '.$q[0].'</p><p>Ngày đăng : '.$dayup.'</p></div><div class="view">Xem thêm</div></a></div>';
$k = mysqli_fetch_row($result);
$q = mysqli_fetch_row($result2);
}
?>
</div>
</div>
</div>
</body>
</html>
<?php
include "footer.php";
?>