-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdatabase.php
55 lines (51 loc) · 1.97 KB
/
database.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
<html>
<head>
<title>eLearn</title>
<link href="style.css" rel="stylesheet" type="text/css">
<style>
.nav-links li a::after{
background-color: cornflowerblue;
}
</style>
</head>
<body>
<div class="header">
<video autoplay loop class="back-video" muted plays-inline>
<source src="media/glitch.mp4" type="video/mp4">
</video>
<nav>
<img src="media/logo.png" class="logo">
<ul class="nav-links">
<li> <a href="index.html">ARA</a> </li>
<li> <a href="hakkinda.html">HAKKINDA</a> </li>
<li> <a href="database.php">DATABASE</a> </li>
<li> <a href="">ILETISIM</a> </li>
<li class="btn" style="background-color: cornflowerblue;">KAYIT OL</li>
</ul>
</nav>
<div class="about" style="overflow: scroll; overflow-y: auto; background: cornflowerblue;">
<table id="table1">
<tr>
<th>Kelime</th>
<th>Açılımı</th>
<th>Anlamı</th>
</tr>
<?php
include 'db.php';
$sql = "SELECT * from dictionary";
$query = mysqli_query($conn, $sql);
while($info=mysqli_fetch_array($query)) {
?>
<tr>
<td><?php echo $info['kelime']; ?></td>
<td><?php echo $info['acilim']; ?></td>
<td><?php echo $info['anlam']; ?></td>
</tr>
<?php
}
?>
</table>
</div>
</div>
</body>
</html>