-
Notifications
You must be signed in to change notification settings - Fork 1
/
quellen.php
47 lines (38 loc) · 1.25 KB
/
quellen.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
<?php
include 'header.php';
?>
<div class="input-group">
<span class="input-group-addon">Filter</span>
<input id="filter" type="text" class="form-control" onkeyup="filter()" placeholder="Filtertext...">
</div><br />
<table id="qtable" class="table table-hover table-responsive">
<script src="scripts/qfilter.js"></script>
<tr class="active">
<th>Kürzel<!--<br/><input type="text" id="filterName" onkeyup="filter()" placeholder="Filter...">--></th>
<th>Titel<!--<br/><input type="text" id="filterOrt" onkeyup="filter()" placeholder="Filter...">--></th>
<th>Autor</th>
<th>Jahrgang</th>
<th>Bereich</th>
</tr>
<?php
$mysqli = new mysqli($sccdbhost, $sccdbuser, $sccdbpassword, $sccdbname);
$mysqli->set_charset("utf8");
/* check connection */
if ($mysqli->connect_errno) {
die('Connect failed: '.$mysqli->connect_error.'\n');
}
$sql = "SELECT * FROM quelle";
$statement = $mysqli->prepare($sql);
$statement->execute();
$result = $statement->get_result();
while($row = $result->fetch_object()) {
echo "<tr id='anker".$row->id."'>";
echo "<td>".$row->kuerzel."</td>";
echo "<td>".$row->titel."</td>";
echo "<td>".$row->autor."</td>";
echo "<td>".$row->jahrgang."</td>";
echo "<td>".$row->bereich."</td>";
echo "</tr>";
}
?>
</table>