Jump to content


Photo

Yes/No in the table


  • Please log in to reply
1 reply to this topic

#1 esm

esm
  • New Members
  • Pip
  • Newbie
  • 5 posts
  • LocationAtlanta GA

Posted 13 May 2003 - 10:33 PM

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?

#2 shivabharat

shivabharat
  • Members
  • PipPipPip
  • Advanced Member
  • 371 posts
  • LocationChennai, India

Posted 14 May 2003 - 07:39 AM

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
Knowledge --- Reading Enriches Mind But Sharing Enhances It.[br][br]Note: Before you request help enusre that you have had a look at the tutorials @phpfreaks




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users