-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstatment_condition.php
56 lines (55 loc) · 1.2 KB
/
statment_condition.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
<!DOCTYPE html>
<html>
<head>
<title>Statement Condition</title>
<link rel="stylesheet" type="text/css" href="Style2.css">
<meta name="viewreport" content="width=device-width initial-scale=1.0">
</head>
<body>
<?php
include "koneksi.php";
$sql = "SELECT * from artikel where `id_artikel` = 13";
$a = $koneksi->query($sql);
while($b = mysqli_fetch_array($a))
{
?>
<div class="container">
<div class="header small_caps">
<h1><?php echo $b['judul_artikel']; ?></h1>
</div>
<div class="penulis">
<p><?php echo $b['ditulis']; ?></p>
</div>
<div class="topnav">
<a href="web_alpro.php">Home</a>
<a href="install.php">Install Java</a>
<a href="keyword.php">Keyword</a>
<a href="looping.php">Looping</a>
</div>
<br>
<br>
<div class="content">
<?php echo $b['about'];
}
?>
<ol>
<?php
$sql = "SELECT * from sub where `id_artikel` = 13";
$a = $koneksi->query($sql);
while($b = mysqli_fetch_array($a))
{
?>
<li><b class="small_caps size"><?php echo $b['sub_judul']; ?></b>
<?php echo $b['sub_artikel']; ?>
</li>
<?php
}
?>
</ol>
</div>
<div class="footer">
<p>Copyright© 2020.</p>
</div>
</div>
</body>
</html>