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:
102:
103:
104:
105:
106:
107:
108:
109:
110:
111:
112:
113:
114:
115:
116:
117:
118:
|
<?php include('header.php'); ?>
<h1>Mein Inventar</h1>
<?php
if(!isset($_SESSION["username"]))
{
echo "Du bist nicht eingeloggt. Bitte erst <a href="login.html">einloggen</a>";
exit;
}
?>
<?php
include("db.php");
$i = 1;
echo "<table width="35%" align="center">
<tr>";
$Ergebnis = mysql_query("SELECT * FROM `inventar` WHERE username='$_SESSION[username]'");
if (mysql_num_rows($Ergebnis) == 0) {
echo 'Es gibt noch nichts in deinem Inventar.';
}
else {
while($Data = mysql_fetch_array($Ergebnis)) {
echo "
<form action='hund_ausruesten.php' method='post'>
<td><table align='center' border='0' width='30%' height='50'>
<tr>
<th class='table2' colspan='2'><img src='Grafiken/Shopgrafiken/$Data[bild].png'></th>
</tr>
<tr>
<td class='table1'>Name</td>
<td class='table2'>$Data[name]</td>
</tr>
<tr>
<td class='table1'>Kategorie</td>
<td class='table2'>$Data[kategorie]</td>
</tr>
<tr>
<td class='table1'>Angezogen?</td>
<td class='table2'>$Data[angezogen]</td>
</tr>
<tr>
<td class='table1'>Hund, der es trägt:</td>
<td class='table2'>$Data[Hundename]</td>
</tr>
<tr>
<td><input type='hidden' name='id' value='$Data[id]'><input type='text' name='wechseln'><input type='submit' value='wechseln?'></td>
</tr>
<tr>
</table></td>
</form> ";
if($i % 3 == 0){
echo "</tr><tr>";
}
$i++;
}
}
echo "</table>";
?>
<?php include('footer.php'); ?> |