| "from" is a reserved word, so if you want to use it as a field name, you need to put backticks around it: $query = "INSERT INTO users (usr, pwd, email, `from`) VALUES ('$usr', '$pwd', '$email', '$from')";
Or make it fully qualified: $query = "INSERT INTO users (usr, pwd, email, users.from) VALUES ('$usr', '$pwd', '$email', '$from')";
Though, I'm a little less sure about the last suggestion. The first suggestion is a definite. |