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:
81:
82:
83:
84:
85:
86:
87:
88:
89:
90:
91:
92:
93:
94:
95:
96:
97:
98:
99:
100:
101:
|
<html>
<head>
<link rel="stylesheet" type="text/css" href="style.css">
<title>Jennipics - Fotografie von Jennifer Becken</title>
</head>
<body>
<?php
include("db.php");
$id = "$_GET[id]";
$Ergebnis = mysql_query( "SELECT * FROM bilder where ID='$id'" );
if (@mysql_num_rows($Ergebnis) == 0) {
echo "Kein Bild vorhanden.";
}
else {
$Data = mysql_fetch_array( $Ergebnis );
echo "<h1>$Data[titel]</h1>";
}
?>
<center><table width=80%>
<tr>
<td colspan=2><img src=<?php echo"$Data[link]" ?> border=0 width=100%></td>
</tr>
<tr>
<td class=tahell width=50%>Titel des Bildes</td>
<td width=50%><?php echo"$Data[titel]" ?></td>
</tr>
<tr>
<td class=tahell width=50%>Aufnahme des Bildes</td>
<td width=50%><?php echo"$Data[aufnahmedatum]" ?>, <?php echo"$Data[aufnahmeort]" ?></td>
</tr>
<tr>
<td class=tahell width=50%>Name des Tieres</td>
<td width=50%><?php echo"$Data[name_des_tieres]" ?></td>
</tr>
<tr>
<td class=tahell width=50%>Rasse des Tieres</td>
<td width=50%><?php echo"$Data[rasse]" ?></td>
</tr>
<tr>
<td class=tahell width=50%>Name des Besitzers</td>
<td width=50%><?php echo"$Data[name_des_besitzers]" ?></td>
</tr>
<tr>
<td class=tahell width=50%>Shooting</td>
<td width=50%><a href=shooting.php?id=<?php echo"$Data[shootings_id]" ?> target=_self>*klick* zum Shooting</a></td>
</tr>
<tr>
<td colspan=2 class=tahell>Beschreibung</td>
</tr>
<tr>
<td colspan=2><?php echo"$Data[beschreibung]" ?></td>
</tr>
<tr>
<td colspan=2 class=tahell>Kommentare zu diesem Bild</td>
</tr>
<tr>
<td colspan=2>
<?php
include("db.php");
$id = "$_GET[id]";
$Ergebnis = mysql_query( "SELECT * FROM kommis where bilderid='$id'" );
if (@mysql_num_rows($Ergebnis) == 0) {
echo "Zu diesem Bild wurden noch keine Kommentare geschrieben.<br><a href='kommischreiben.php?id='$id'' target='_self'>Erster sein!</a>";
}
else {
$Data = mysql_fetch_array( $Ergebnis );
echo"
<center><table width=90%>
<tr>
<td class=tadunkel>Kommentar von $Data[verfasser]</td>
</tr>
<tr>
<td>$Data[text]</td>
</tr>
</table></center><br>";
}
?>
</td>
<tr>
</table></center>
</body>
</html> |