Luckerscout
Grünschnabel
Hallo ich habe versucht mithilfe von mysql und php eine Loginfunktion zu erstellen doch leider missglückte mein Versuch.
Ich weiß nicht warum die datei controllcenter.php oder controllcenteruser.php nicht geladen wird
Link zur seite http://foxi.ltam.lu/students/gi12/gi12_10/index.php?section=login
Hoffe auf eine Antwort

Ich weiß nicht warum die datei controllcenter.php oder controllcenteruser.php nicht geladen wird
PHP:
<?php
if (isset($_POST['Send'])){
if (($_POST["Username"]=='') or ($_POST["Password"]=='')){
echo('Bitte füllen Sie alle Felder');
} else {
$verbindung= mysql_connect("localhost","***mein username***","***mein passwort***") OR die(mysql_error());
if (!$verbindung) echo "Keine Verbindung aufgebaut <br>";
mysql_select_db("***mein username***") OR die(mysql_error());
$username = $_POST["Username"];
$password = $_POST["Password"];
$sql = "SELECT
username,
password,
status
FROM
User";
$status = $row['status'];
$result = mysql_query($sql) OR die(mysql_error());
while($row = mysql_fetch_assoc($result)) {
if (($username== $row['username']) and ($password== $row['password']) and ($status=='1'))
{include ("data/admin/admin/controlcenter.php"); }
if (($username== $row['username']) and ($password== $row['password']) and ($status=='2'))
{include ("data/admin/user/controlcenteruser.php"); }
else { include ("data/notavailable/notavailable.php"); }
}}}
?>
Link zur seite http://foxi.ltam.lu/students/gi12/gi12_10/index.php?section=login
Hoffe auf eine Antwort

