cille
Erfahrenes Mitglied
Funktioniert irgendwie immernoch nicht,
Fehler:
hier mal der komplette code von der seite:
So schaut die login2.php aus.
DANKE FÜR EURE HILFE, SEIT ECHT KLASSE
Fehler:
Code:
Warning: Cannot modify header information - headers already sent by (output started at C:\Programme\xampp\htdocs\projekte\Webdesign\truemmel\hp\login2.php:13) in C:\Programme\xampp\htdocs\projekte\Webdesign\truemmel\hp\login2.php on line 92
PHP:
<?php session_start (); ?>
HTML:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title></title>
<link href="style.css" rel="stylesheet" type="text/css" />
</head>
<body>
<table width="1000" height="100" align="center" border="0" cellpadding="0" cellspacing="0">
<tr valign="middle" align="center">
<td align="center" valign="middle">
<div id="middle">
<table width="1000" border="1" valgin="middle" align="center" cellpadding="0" cellspacing="0" bordercolor="#000000">
<tr>
<td width="1247" align="center" valign="middle"><table width="1000" height="100" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="1000" height="228" background="http://www.tutorials.de/forum/images/01.gif"><table width="1000" height="149" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="860">
<marquee behavior="scroll" direction="left" width="864" scrollamount="1" scrolldelay="20" truespeed="yes">
<?php include("lauf/login.php"); ?>
</marquee>
</td>
<td width="140"> </td>
</tr>
</table>
</td>
</tr>
<tr>
<td><table width="1000" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="409" valign="top"><table width="409" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="106" height="107" valign="top"><a href="die_druckerei.php" onMouseOver="austausch1.src='images/02_roll.gif';" onmouseout="austausch1.src='images/02.gif';" ><img name="austausch1" src="http://www.tutorials.de/forum/images/02.gif" width="109" height="107" border="0" align="top" /></a></td>
<td width="300" height="107" colspan="3" valign="top"><img src="http://www.tutorials.de/forum/images/03.gif" width="300" height="107" border="0" align="top" /></td>
</tr>
<tr>
<td width="106" height="99" valign="top"><a href="siebdruck.php" onMouseOver="austausch2.src='images/09_roll.gif';" onmouseout="austausch2.src='images/09.gif';"><img name="austausch2" src="http://www.tutorials.de/forum/images/09.gif" width="109" height="99" border="0" align="top" /></a></td>
<td width="99" height="99" valign="top"><a href="leistungen.php" onMouseOver="austausch3.src='images/10_roll.gif';" onmouseout="austausch3.src='images/10.gif';"><img name="austausch3" src="http://www.tutorials.de/forum/images/10.gif" width="99" height="99" border="0" align="top" /></a></td>
<td width="201" height="99" colspan="2" valign="top"><img src="http://www.tutorials.de/forum/images/11.gif" width="201" height="99" border="0" align="top" /></td>
</tr>
<tr>
<td width="109" height="101" valign="top"><a href="plakate.php" onMouseOver="austausch4.src='images/12_roll.gif';" onmouseout="austausch4.src='images/12.gif';"><img name="austausch4" src="http://www.tutorials.de/forum/images/12.gif" width="109" height="101" border="0" align="top" /></a></td>
<td width="99" height="101" valign="top"><a href="bucher.php" onMouseOver="austausch5.src='images/13_roll.gif';" onmouseout="austausch5.src='images/13.gif';"><img name="austausch5" src="http://www.tutorials.de/forum/images/13.gif" width="99" height="101" border="0" align="top" /></a></td>
<td width="50" height="101" valign="top"><a href="kunstdruck_am_bau.php" onMouseOver="austausch6.src='images/14_roll.gif';" onmouseout="austausch6.src='images/14.gif';"><img name="austausch6" src="http://www.tutorials.de/forum/images/14.gif" width="103" height="101" border="0" align="top" /></a></td>
<td width="98" height="101" valign="top"><img src="http://www.tutorials.de/forum/images/15.gif" width="98" height="101" border="0" align="top" /></td>
</tr>
<tr>
<td width="109" height="115" valign="top"><a href="referenzen.php" onMouseOver="austausch7.src='images/16_roll.gif';" onmouseout="austausch7.src='images/16.gif';"><img name="austausch7" src="http://www.tutorials.de/forum/images/16.gif" width="109" height="115" border="0" align="top" /></a></td>
<td width="99" height="115" valign="top"><a href="kontakt.php" onMouseOver="austausch8.src='images/17_roll.gif';" onmouseout="austausch8.src='images/17.gif';"><img name="austausch8" src="http://www.tutorials.de/forum/images/17.gif" width="99" height="115" border="0" align="top" /></a></td>
<td width="103" height="115" valign="top"><a href="links.php" onMouseOver="austausch9.src='images/18_roll.gif';" onmouseout="austausch9.src='images/18.gif';"><img name="austausch9" src="http://www.tutorials.de/forum/images/18.gif" width="103" height="115" border="0" align="top" /></a></td>
<td width="98" height="115" valign="top"><a href="login.php" onMouseOver="austausch10.src='images/19_roll.gif';" onmouseout="austausch10.src='images/19.gif';"><img name="austausch10" src="http://www.tutorials.de/forum/images/19.gif" width="98" height="115" border="0" align="top" /></a></td>
</tr>
</table></td>
<td width="26" height="422" valign="top"><img src="http://www.tutorials.de/forum/images/04.gif" width="26" height="422" /></td>
<td valign="top"><table width="402" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="402" height="17" valign="top"><img src="http://www.tutorials.de/forum/images/05.gif" width="402" height="17" align="top" /></td>
</tr>
<tr>
<td width="402" height="378" valign="top">
<div id="box">
PHP:
<?php
ob_start();
// Datenbankverbindung aufbauen
include('config/config.php');
if (!mysql_select_db ("trummel", $dbconnect))
{
die ("Keine Verbindung zur Datenbank");
}
$sql = "SELECT id, name, nachname, vorname FROM users WHERE (name like '".$_REQUEST["name"]."') AND (pass = '".md5($_REQUEST["pwd"])."')";
$result = mysql_query ($sql);
if (mysql_num_rows ($result) > 0)
{
// Benutzerdaten in ein Array auslesen.
$data = mysql_fetch_array ($result);
// Sessionvariablen erstellen und registrieren
$_SESSION["user_id"] = $data["id"];
$_SESSION["user_name"] = $data["name"];
$_SESSION["user_nachname"] = $data["nachname"];
$_SESSION["user_vorname"] = $data["vorname"];
header ("Location: intern.php");
}
else
{
header ("Location: formular.php?fehler=1");
}
ob_end_flush();
?>
HTML:
</div>
</td>
</tr>
<tr>
<td width="402" height="27" valign="top"><img src="http://www.tutorials.de/forum/images/20.gif" width="402" height="27" align="top" /></td>
</tr>
</table></td>
<td width="29" height="422" valign="top"><img src="http://www.tutorials.de/forum/images/06.gif" width="29" height="422" align="top" /></td>
<td width="134" height="422" valign="top"><img src="http://www.tutorials.de/forum/images/07.gif" width="134" height="422" align="top" /></td>
</tr>
</table></td>
</tr>
</table>
</td>
</tr>
</table>
</div>
</td>
</tr>
</table>
</body>
</html>
DANKE FÜR EURE HILFE, SEIT ECHT KLASSE