mysql - Add Value For Enum In SQL -


i have database use enum in it.when try insert data in table ..... nothing happen!!

here code of enum part :

alter table `question` change `status` `status` enum (     'pending',     'publish',     'answered'     ) character set utf8 collate utf8_general_ci not null default 'pending'; 

and it's query :

query("insert `question`(`username`, `email`, `phone`, `content`,status) values ('$name','$mail','$phone','$content','pending')"); 

i ignore status ( because define default value ) , , try insert data again , still nothing happen!

what must done??!


Comments

Popular posts from this blog

4x4 Matrix in Python -

python - String indices must be integers and while issue -

wso2is - WSO2 IS 5.0.0 SP1 After restart there is authentication error -