Hallo ich bin so zimmlicher Anfänger was PHP betrifft und hänge nun an folgener stelle.
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'WHERE lan_nr = '8'' at line 13
Danke für eure Hilfe.
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'WHERE lan_nr = '8'' at line 13
PHP:
case "edit_del":
$sql1 = "SELECT
lan_nr
FROM
config";
$result = mysql_query($sql1) OR die(mysql_error());
if(mysql_num_rows($result)) {
while($cof = mysql_fetch_assoc($result)) {
$sql = "SELECT
ID,
Name,
Nachname,
GB,
GB_ort,
Eitragen_pers,
Datum
FROM
pers_deu
ORDER BY
ID DESC
WHERE
lan_nr = '".$cof[lan_nr']."';";;
$result = mysql_query($sql) OR die(mysql_error());
echo "<p>Einträge im Personal-System: ".mysql_num_rows($result)."</p>\n";
echo "<hr>\n";
}
}
?>
Danke für eure Hilfe.