![]() |
|
|
|
| ||||||
|
Welcome to the The ProgrammersTalk Community forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact contact us. |
| Tags: error, form, mysql, php, submit |
![]() |
![]() | | LinkBack | Thread Tools | Display Modes | ![]() |
| |
| ||||
| "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. |
| |||
| Fields named desc used to catch me all the time. I had the habit of naming fields the shortest I could get away with - since gotten out of that habit. So instead of description I would use desc. It would sometimes work, and sometimes not. Once I finally realized what was happening I had to thump myself on the forehead. |
![]() |
| Thread Tools | |
| Display Modes | |
| |