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? Link to comment https://forums.phpfreaks.com/topic/270674-how-to-set-default-value-in-a-record/ 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 Link to comment https://forums.phpfreaks.com/topic/270674-how-to-set-default-value-in-a-record/#findComment-1392256 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 ! Link to comment https://forums.phpfreaks.com/topic/270674-how-to-set-default-value-in-a-record/#findComment-1392269 Share on other sites More sharing options...
trq Posted November 14, 2012 Share Posted November 14, 2012 Post your database schema and your code. Link to comment https://forums.phpfreaks.com/topic/270674-how-to-set-default-value-in-a-record/#findComment-1392274 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.