-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfaq.php
More file actions
29 lines (28 loc) · 753 Bytes
/
faq.php
File metadata and controls
29 lines (28 loc) · 753 Bytes
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
<?php
require('top_file.php');
?>
<?
require "db.php";
print "
<h3>Häufig gestellte Fragen</h3>\n";
$faq = mysql_query("SELECT * FROM faq");
if(mysql_num_rows($faq) < 1) {
print "(Keine Einträge vorhanden)\n";
}
while($entry = mysql_fetch_assoc($faq)) {
$datum_formatiert = substr($entry['datum'], 0, 4) . '-' .
substr($entry['datum'], 4, 2) . '-' .
substr($entry['datum'], 4, 2);
print "<table border=0><tr><td><h4>Frage</h4></td><td align=\"right\">$datum_formatiert</td></tr>
<tr><td colspan=2><!-- $entry[datum] -->\n$entry[frage]</td></tr>
<tr><td><h4>Antwort</h4></td><td> </td></tr>
<tr><td colspan=2>$entry[antwort]</td></tr>
</table>
<hr>\n";
}
?>
</div>
</div>
<div id="background_footer"></div>
</body>
</html>