i have a Form database with connected to php coding.
the problem is when i modify the php code a default value ‘0’ is adding in data base..
i need the suggestion to avoid that….
i have a Form database with connected to php coding. the problem is when
Share
If that field is declared as integer in the db and you do not allow null values,
when you post the values of the form and there isn’t a value for that field, it will take the default value for integers “0”.
To avoid that you need to allow null values and you need to check while you update the record if a value for tha field exists.
Something like that.