best yes or no data type

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
stonelord
Forum Newbie
Posts: 6
Joined: Tue Jun 17, 2008 8:48 pm

best yes or no data type

Post by stonelord »

Hi, I have been tryoing to read but I can't seem to find a good answer. What is the best data type in mysql to use for a field in my database that I want to receive a "yes" or "no" answer? or "true" or "false"? I read that 'Enum' may be one of them because I don't see 'Boolean'!!! Please help, thank you
shanti
Forum Newbie
Posts: 3
Joined: Mon Jun 23, 2008 7:22 am

Re: best yes or no data type

Post by shanti »

Bool is the best data type to be used for yes or no in mysql..
i have done many examples to this type..
Post Reply