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? 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 Link to comment https://forums.phpfreaks.com/topic/466-yesno-in-the-table/#findComment-1587 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.