<?php
error_reporting(E_ALL);
$rowKeys = array('Userid', 'Vorname', 'Nachname','Firma','Email','Telefon','Telefon2','Laufzeit','PCLizenzen','Seriennummer','DatumAktiv','DatumEndAktiv');
$row = array_fill_keys($rowKeys, '');
if(isset($_POST['submit'])){
$Host = "localhost";
$User = "david";
$Password = "a";
$dbname = "ABMC-Datenbank";
$tbl="Kunden";
mysql_connect('localhost', 'david', 'a') or die ("Keine Verbindung möglich: ".mysql_error());
mysql_select_db($dbname) or die ("Keine Verbindung möglich: ".mysql_error());
$sql = "SELECT * FROM {$tbl} WHERE Userid ='".mysql_real_escape_string($_POST["Userid"])."'";
$sql = "SELECT * FROM {$tbl} WHERE Vorname ='".mysql_real_escape_string($_POST["Vorname"])."'";
$sql = "SELECT * FROM {$tbl} WHERE Nachname ='".mysql_real_escape_string($_POST["Nachname"])."'";
$sql = "SELECT * FROM {$tbl} WHERE Firma ='".mysql_real_escape_string($_POST["Firma"])."'";
$sql = "SELECT * FROM {$tbl} WHERE Email ='".mysql_real_escape_string($_POST["Email"])."'";
$sql = "SELECT * FROM {$tbl} WHERE Laufzeit ='".mysql_real_escape_string($_POST["Laufzeit"])."'";
$sql = "SELECT * FROM {$tbl} WHERE PCLizenzen ='".mysql_real_escape_string($_POST["PCLizenzen"])."'";
$sql = "SELECT * FROM {$tbl} WHERE Seriennummer ='".mysql_real_escape_string($_POST["Seriennummer"])."'";
$sql = "SELECT * FROM {$tbl} WHERE DatumAktiv ='".mysql_real_escape_string($_POST["DatumAktiv"])."'";
$sql = "SELECT * FROM {$tbl} WHERE DatumEndAktiv ='".mysql_real_escape_string($_POST["DatumEndAktiv"])."'";
$result = mysql_query($sql) or die(mysql_error());
if(mysql_affected_rows() ==1){}
$row = mysql_fetch_assoc($result);
}