esm Posted May 13, 2003 Share Posted May 13, 2003 I have several Yes/No fields ( they are truely Yes/No with No being the defaul value ). What is the correct way to code the value in the table. Yes/No or 1/0? Quote Link to comment https://forums.phpfreaks.com/topic/466-yesno-in-the-table/ Share on other sites More sharing options...
shivabharat Posted May 14, 2003 Share Posted May 14, 2003 I would use 0 or 1 as it would be easy for me to compare and findoutr. Now in the case of yes or no I have to do a strcmp everytime and find out if the result is o or 1. Best would be to use 0 or 1 Quote Link to comment https://forums.phpfreaks.com/topic/466-yesno-in-the-table/#findComment-1587 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.