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: | <html>
<head>
<style type="text/css">
<!--
body, table {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 12px;
color: #000000;
background-color: #6B6B6B;
}
h1 {
font-size: 14px;
}
table {
background-color: #000000;
}
td {
background-color: #6B6B6B;
}
th {
background-color: #CCCCCC;
}
-->
</style>
</head>
<body>
<div align="center"><h1>
<?php
//check get data
if ( !isset($_GET['s'])) {
$s = "1"; // zb
} else
$s = $_GET['s'];
?>
<?php
//zur DB connecten
$db = mysql_connect("localhost", "root", "");
//db auswählen
mysql_select_db("test", $db);
// MySQL-Abfrage starten
$sql = "SELECT `category` FROM `category` WHERE `id` = '" . addslashes($s) . "'";
$result = mysql_query($sql);
$data = mysql_fetch_array($result);
echo $data['category'];
?>
</h1></div>
<br>
<table width="75%" border="0" align="center" cellpadding="2" cellspacing="1">
<tr>
<th>Datum</th>
<th>Titel</th>
<th>Crew</th>
<th>Nfo</th>
<th>Link</th>
</tr>
<?php
// MySQL-Abfrage starten
$sql = "SELECT * FROM nfo WHERE category='" . addslashes($s) . "'";
$result = mysql_query($sql);
while($data = mysql_fetch_array($result)) {
echo " <tr>";
echo '<td style="text-align:center;">', $data['datum'], '</td>';
echo " <td>".$data['nfo_name']."</td>";
echo '<td style="text-align:center;">', $data['group'], '</td>';
echo '<td style="text-align:center;">', $data['nfo'], '</td>';
echo '<td style="text-align:center;">', $data['link'], '</td>';
echo " <tr>";
}
?>
</table>
</body>
</html> |