Posts: 3,621
Name: Thierry
Location: I'm the uber Spaminator !
|
If you have a default value on a field, don't try to override it with an empty value, especially on your primary key...
Code:
INSERT INTO picks (pickFeed, userId) VALUES ('$feed','$user');
I wonder why you put default values to null, and try to assign them an empty value ?
Take care, '' != null.
null means no value, '' means an empty value, which is not null.
__________________
Only a biker knows why a dog sticks his head out the window.
|