I created a table in mysql :
create table mytab(name varchar(20), address varchar(20) not null default 'none');
Now from a html form i take the value for address. Now if somebody dosen't enter anything in the address field the default value should go into the table. But this is not happening. Instead nothing is going in the address field and when I display the table contents , address field comes as a blank.
Can somebody help...
create table mytab(name varchar(20), address varchar(20) not null default 'none');
Now from a html form i take the value for address. Now if somebody dosen't enter anything in the address field the default value should go into the table. But this is not happening. Instead nothing is going in the address field and when I display the table contents , address field comes as a blank.
Can somebody help...
