Posts: 3,621
Name: Thierry
Location: I'm the uber Spaminator !
|
Quote:
|
since nothing was entered, nothing is posted, and the query fails since there is no value.
|
It depends of your DB.
If the field is created with a NOT NULL constraint, then yes, it's probably your problem.
You must understand that you have 2 systems now that talk together.
You have PHP, that process the requests, and you have the DB, which execute requests sent by PHP and return a feedback.
Your error might be in the PHP layer, but it can be that PHP is just relaying back an error that occured in the DB layer.
Read (and post here) the error message returned by PHP, it will change depending where the problem occured, and we'll be able to help you further.
Post the structure of the sql table you want to insert into too. It will help us.
__________________
Only a biker knows why a dog sticks his head out the window.
|