Fortune
03-09-2000, 03:21 AM
I have a field called "Price" in mySQL database. It was defined as:
Price INT UNSIGNED DEFAULT NULL,
When a visitor filled my cgi form and left this field blank, there was no problem. When I viewed this field in phpMyAdmin, this field was blank.
However; if later the visitor modified his data and left this field blank again, this field would be automaticly[nbsp][nbsp][nbsp][nbsp]filled with '0'. I also couldn't modified it to be blank by phpMyAdmin.
I want it to be NULL, not 0. Any idea?
Any help is greatly appreciated. Thanks.
Price INT UNSIGNED DEFAULT NULL,
When a visitor filled my cgi form and left this field blank, there was no problem. When I viewed this field in phpMyAdmin, this field was blank.
However; if later the visitor modified his data and left this field blank again, this field would be automaticly[nbsp][nbsp][nbsp][nbsp]filled with '0'. I also couldn't modified it to be blank by phpMyAdmin.
I want it to be NULL, not 0. Any idea?
Any help is greatly appreciated. Thanks.