Thanks for your early reply
I have search this problem on web but did not find any solution.
But how can I control it on application level.
Basically I am building a class, I want that this class should "Null Value Error".
This is my query.
"INSERT INTO BG_USERS(USERID,FIRST_NAME,LAST_NAME,USER_NAME,PASS_WORD,EMAIL,ADDRESS,COUNTRY,OPEN_DT,CLOSE_DT)
VALUES($this->maxid,$FIRST_NAME,$LAST_NAME,$USER_NAME,$PASSWORD,$EMAIL,$ADDRESS,$COUNTRY,$this->open_date,$CLOSE_DT)"
I tried to assign empty fields = NULL
but it again insert it as a string.
Do u have solution in your mind.
Regards