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:
|
<?php include('header.php'); ?>
<?php
if(!isset($_SESSION["username"]))
{
echo "Du bist nicht eingeloggt. Bitte erst <a href="login.html">einloggen</a>";
exit;
}
include('db.php');
$id = $_GET[id];
$abfrage = "SELECT * FROM hun WHERE id = '$id'";
$ergebnis = mysql_query($abfrage);
while($row = mysql_fetch_object($ergebnis))
{
if ($row->energie >= '20' AND $row->fitness >= '20' AND $row->zuneigung <= '80') {
echo "Wohin möchtest du spazieren gehen? <br><br>";
echo "<table><form action='gassie_action.php' method='post'>
<input type='hidden' name='id' value='$Data[id]'>
<tr>
<td><input type='radio' name=gassie value='park'></td>
<td><img src='Grafiken/Park.png'> </td>
</tr>
<tr>
<td><input type='radio' name=gassie value='strand'></td>
<td><img src='Grafiken/Strand2.png'></td>
</tr>
<tr>
<td><input type='radio' name=gassie value='wald'></td>
<td><img src='Grafiken/Wald2.png'></td>
</tr>
<tr>
<td colspan='2'><input type='submit' value='Gassie gehen'></td>
</tr>
</table></form>";
}
else
{
echo "Dein Hund kann jetzt nicht Gassie gehen...<br><br>";
}
}
mysql_close();
?>
<?php include('footer.php'); ?>
|