bekomme immer folgende fehlermeldung wenn ich an jedes mysql_query dann noch or die mysql_error dranhänge. ansonsten funzt es.
You have an error in your SQL syntax near 'WHERE name = 'admin' ' at line 1
programmcode:
$user = addslashes($_POST['username']);
$pwd = addslashes(md5($_POST['passwort']));
$query = "SELECT * FROM users WHERE name = '$user' " or die(mysql_error());
tabelle:
ID int(11)
name varchar(25)
pass varchar(32)
email varchar(40)
lastlogin datetime
usersince datetime
level int(10)
points int(11)
You have an error in your SQL syntax near 'WHERE name = 'admin' ' at line 1
programmcode:
$user = addslashes($_POST['username']);
$pwd = addslashes(md5($_POST['passwort']));
$query = "SELECT * FROM users WHERE name = '$user' " or die(mysql_error());
tabelle:
ID int(11)
name varchar(25)
pass varchar(32)
email varchar(40)
lastlogin datetime
usersince datetime
level int(10)
points int(11)
Kommentar