Danke erstmal, aber irgendwo habe ich einen Hund drin, bekomme immer die Fehlermeldung:
Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in C:\apachefriends\xampp\htdocs\filawelt_com\BildVerwaltung\inc\TMPo46gyius60.php on line 3
___1 ZEILE__<?php // name dieses script "personendaten_auslesen.inc.php"
___2 ZEILE__include ("tb_oeffnen.inc.php"); // DB öffnen
___3 ZEILE__$sql="SELECT * FROM tb_name_blindelinse WHERE Name_Nachname='.addslashes($_POST['strNachname']).' AND Name_Vorname='.addslashes($_POST['strVorname']).' AND Name_Zusatz='.addslashes($_POST['strZusatz']).'";
___4 ZEILE__$ergebnis=mysql_query($sql);
___5 ZEILE__?>
<?php // name dieses script "tb_oeffnen.inc.php
/*******/
$con_server = "localhost"; // Adresse des mySQL-Server
$con_user = "root"; // Benutzername
$con_pass = ""; // Passwort
$con_db = "filawelt_2"; // Datenbank
/*******/
$mysql_conn = @mysql_connect($con_server, $con_user, $con_pass);
if ($mysql_conn != TRUE)
{ echo "Es kommte keine Verbindung mit der Datenbank hergestellt werden! Fehlermeldung: <br /><br />".mysql_error();
die;
} mysql_select_db($con_db, $mysql_conn);
?>
<?PHP // name dieses script "personen_neuerror.inc.php
// einlesen von Post´s
$strNachname=htmlentities($_POST['strNachname']);
$strVorname=htmlentities($_POST['strVorname']);
$strZusatz=htmlentities($_POST['strZusatz']);
$strGeburtsdatum=htmlentities($_POST['strGeburtsdatum']);
$strGeburtsort=htmlentities($_POST['strGeburtsort']);
// error auf 0
$intError=0; ?>
<fieldset>
<legend>Neue Person überprüfen</legend>
<form name="input1" id="input1" method="post" action="<?PHP echo($PHP_SELF) ?>">
<label for="strNachname" class="left">Nachname:</label>
<?PHP if ($strNachname!="")
{ echo $strNachname;
?><input name="strNachname" type="hidden" value="<?PHP echo $strNachname; ?>" /><?PHP
}
else
{ $intError=1;
?><input type="text" name="strNachname" align="right" style="background: #ff0000;" /><?PHP
} ?>
<br />
<label for="strVorname" class="left">Vorname:</label>
<?PHP if ($strVorname!="")
{ echo $strVorname;
?><input name="strVorname" type="hidden" value="<?PHP echo $strVorname; ?>" /><?PHP
}
else
{ $intError=1;
?><input type="text" name="strVorname" align="right" style="background: #ff0000;" /><?PHP
} ?>
<br />
<label for="strZusatz" class="left">Zusatz:</label>
<?PHP
___ZEILE__include ("personendaten_auslesen.inc.php");
___ZEILE__if (($strZusatz!="")||($ergebnis=???)) /*******???????*******/
{ echo $strZusatz;
?><input name="strZusatz" type="hidden" value="<?PHP echo $strZusatz; ?>" /><?PHP
}
else
{ $intError=1;
?><input type="text" name="strZusatz" align="right" style="background: #ff0000;" /><?PHP
} ?>
<br />
<label for="strGeburtsdatum" class="left">Geburtsdatum:</label>
<?PHP if ($strGeburtsdatum=="")
{ $strGeburtsdatum=date('d.m.Y');
$intError=1
?><input name="strGeburtsdatum" type="text" size="10" maxlength="10" align="right" value="<?PHP echo $strGeburtsdatum; ?>" style="background: #ff0000;" /><?PHP
}
else
{ $arrDatePart=explode(".", $strGeburtsdatum);
if (checkdate($arrDatePart[1], $arrDatePart[0], $arrDatePart[2]))
{ echo ($strGeburtsdatum);
?><input name="strGeburtsdatum" type="hidden" value="<?PHP echo $strGeburtsdatum; ?>" /><?PHP
}
else
{ ?><input name="strGeburtsdatum" type="text" size="10" maxlength="10" align="right" value="<?PHP echo date('d.m.Y'); ?>" style="background: #ff0000;" /><?PHP
$intError=1;
}
} ?>
(MM.DD.YYYY)<br>
<label for="strGeburtsort" class="left">Geburtsort:</label>
<?PHP
if ($strGeburtsort!="")
{ echo $strGeburtsort;
?><input name="strGeburtsort" type="hidden" value="<?PHP echo $strGeburtsort; ?>" /><?PHP
}
else
{ $intError=1;
?><input type="text" name="strGeburtsort" align="right" style="background: #ff0000;" /><?PHP
}
?>
<br /><br />
<label for="" class="left"></label>
<?PHP if ($intError==1)
{ ?>
<input name="intStep" type="hidden" value="1" />
<?PHP
}
else
{ ?>
<input name="intStep" type="hidden" value="2" />
<?PHP
} ?>
<input name="strAction" type="hidden" value="new" />
<?PHP if ($intError==1)
{ ?>
<input type="submit" name="Submit" value="Berichtigen" class="button" />
<?PHP
}
else
{ ?>
<input type="submit" name="Submit" value="Speichern" class="button" />
<?PHP
} ?>
</form>
</fieldset>
als Antwort auf: [#175116]