Hi !
|
Source code
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
$sql_1="SELECT
Name,
PASSWORD
FROM
Users";
$result_1= MYSQL_QUERY($sql_1) OR die(mysql_error());
if(mysql_num_rows($result_1)) {
while($row_1 = mysql_fetch_assoc($result_1))
{
if($_SESSION['Login_Name']==$row1['Name'] AND $_SESSION['Login_Password']==$row1['PASSWORD'])
{
echo("<br><a href='index.php?action=addnews'>Add News</a><br><br>");
}
}
}
else
{
echo("Zum Newsposten bitte einloggen :)");
}
|
Fehler :
Notice: Undefined index: Login_Name in i:\webserver\gm\news.php on line 21
Notice: Undefined variable: row1 in i:\webserver\gm\news.php on line 21
Notice: Undefined index: Login_Password in i:\webserver\gm\news.php on line 21
Notice: Undefined variable: row1 in i:\webserver\gm\news.php on line 21
und abfrage geht nich. "Add News" wird angezeigt