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:
|
<?php
session_start();
?>
<?php
if(!isset($_SESSION["username"]))
{
echo "Bitte erst <a href="login.html">einloggen</a>";
exit;
}
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Costantinstables</title>
<link rel=stylesheet href=style.css type=text/css>
</head>
<body>
<center>
......
<?php
include("db.php");
$username = "$_SESSION[username]";
$query = mysql_query("SELECT vHauptberuf FROM mitglieder WHERE name='$username'");
$result = mysql_fetch_object($query);
$beruf = $result['vHauptberuf'];
if (@mysql_num_rows($beruf) == "Hofbesitzerin")
{ echo "Hallo Hofbesitzerin"; }
else
{
echo "keine ausgabe";
}
?>
</center>
</body>
</html> |