Also ich habe folgendes problem:
Wenn ich die seite aufrufe bekomme ich diese Fehlermeldung:
Parse error: syntax error, unexpected $end in C:\apachefriends\xampp\htdocs\index.php on line 57
meine index.php sieht wie folgt aus:
meine check.php
Ich hoffe ihr könnt mir helfen...
Danke Schonmal
Wenn ich die seite aufrufe bekomme ich diese Fehlermeldung:
Parse error: syntax error, unexpected $end in C:\apachefriends\xampp\htdocs\index.php on line 57
meine index.php sieht wie folgt aus:
Code:
<table width="1024" border="0" cellpadding="0" cellspacing="0" bgcolor="#000000">
<tr>
<td colspan="2" rowspan="2" valign="top"><img src="wow_fansitekit/logos/wowlogo.jpg" width="311" height="148"></td>
<td height="115" colspan="4" valign="top"><div align="center">
<p class="Stil1"><img src="banner.jpg" width="594" height="130"></p>
</div></td>
</tr>
<tr>
<td width="428" height="35" valign="top">
<?php
if(!session_is_registered('user_username'))
{
?>
<form name="form1" method="post" action="check.php">
<input name="name" type="text" value="Name">
<input name="pwd" type="password" value="Passwort">
<input name="send" type="submit" value="Absenden">
</form>
<?php
}
else
{
echo $_SESSION["user_id"];
echo $_SESSION["user_username"];
echo $_SESSION["user_rasse"];
echo $_SESSION["user_klasse"];
?>
</td>
<td width="102" valign="top">
</td>
</tr>
<tr>
<td width="310" height="618" valign="top"></td>
<td colspan="5" valign="top">
<?php
include("config.php");
if (!isset($_GET['section']) AND isset($seiten[$_GET['section']]))
{
if(!file_exists($seiten[$_GET['section']])) echo "Die Datei ist nicht vorhanden!";
include $seiten[$_GET['section']];
}
else
{
include $seiten['home'];
}
?>
</td>
</tr>
<tr>
<td height="1"></td>
<td width="1"></td>
<td></td>
<td></td>
<td width="1"></td>
<td width="182"></td>
</tr>
</table>
meine check.php
Code:
<?php
session_start ();
$db_server = "localhost";
$db_name = "xxx";
$db_user = "xxx";
$db_passwort = "xxx";
$db = @mysql_connect($db_server,$db_user,$db_passwort) or die ("Konnte keine Verbindung zur Datenbank herstellen");
$db_check = @mysql_select_db($db_name);
$sql = @mysql_query("SELECT id, user, pw, email, rasse, klasse, ep, level, punkte, icq FROM user WHERE user = '$name' AND pw = '$pwd'",$db);
if (mysql_num_rows ($sql) > 0)
{
$data = mysql_fetch_array ($sql);
$_SESSION["user_id"] = $data["id"];
$_SESSION["user_username"] = $data["user"];
$_SESSION["user_password"] = $data["pw"];
$_SESSION["user_email"] = $data["email"];
$_SESSION["user_rasse"] = $data["rasse"];
$_SESSION["user_klasse"] = $data["klasse"];
$_SESSION["user_ep"] = $data["ep"];
$_SESSION["user_level"] = $data["level"];
$_SESSION["user_punkte"] = $data["punkte"];
$_SESSION["user_icq"] = $data["icq"];
session_register('user_username');
header ("Location: index.php");
}
mysql_close($db);
?>
Ich hoffe ihr könnt mir helfen...
Danke Schonmal