View Single Post
  #2 (permalink)  
Old 06-13-2007, 11:27 AM
TeraTask's Avatar
TeraTask TeraTask is offline
PT Admin
Awards Showcase
Quality Tutorial Quality Tutorial Quality Tutorial 
Total Awards: 3
Join Date: Jun 2007
Location: Reno, NV
Posts: 442
iTrader: (0)
TeraTask is a splendid one to beholdTeraTask is a splendid one to beholdTeraTask is a splendid one to beholdTeraTask is a splendid one to beholdTeraTask is a splendid one to beholdTeraTask is a splendid one to behold
"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.

__________________
Jeremy Miller
Content Farmer - Optimized Automated Blog Posting

Digg this Post! Del.Icio.Us this Post! Technorati this Post! Furl this Post! Mister Wong this Post! Newsvine this Post! Spurl this Post! Reddit this Post! Netscape this Post!
Reply With Quote