$sql = "...";
$ergebnis = mysql_query($sql) or die(mysql_error()."\nQuery war: #".$sql."#\n");
Danke.
jetzt kommt das:
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 loginname = "philz" AND loginpw = "ed0045ef45e9f48ccd680e8443e8b18ed8de15d' at line 1
Query war: #SELECT id, acode, name, loginname, loginpw FROM WHERE loginname = "lol" AND loginpw = "pw"#