joyebright Posted November 14, 2012 Share Posted November 14, 2012 Hi , all of us know we can check the value and after do some action with php ,but now my problem is something different. in some form ,put some value in text box is require however u can eliminate this obligation by php,and now my question is how i can set some value for some record as define when user don't fill the text box ,that value set az define in mysql? Quote Link to comment Share on other sites More sharing options...
trq Posted November 14, 2012 Share Posted November 14, 2012 http://dev.mysql.com/doc/refman/5.0/en/data-type-defaults.html Quote Link to comment Share on other sites More sharing options...
joyebright Posted November 14, 2012 Author Share Posted November 14, 2012 ok , i checked it out but my goal is set value when user leave the record empty and put it to record such as: empty as a string but this value wouldn't stay in record ! Quote Link to comment Share on other sites More sharing options...
trq Posted November 14, 2012 Share Posted November 14, 2012 Post your database schema and your code. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.