View Single Post
  #2 (permalink)  
Old 07-09-09, 10:31 PM
dgreenhouse's Avatar
dgreenhouse dgreenhouse is offline
Aspiring Coder
 
Join Date: Mar 2009
Location: San Francisco
Posts: 430
Thanks: 0
Thanked 0 Times in 0 Posts
That's because you're not providing an integer value. If you want to insert NULL, the field definition must allow NULLS.

It appears to me that user_id would be an auto_increment field anyway and should be handled by the database engine. I could be wrong.
Reply With Quote