Solved

yes/no field in mysql using myphpadmin

Posted on 2008-10-10
2
899 Views
Last Modified: 2013-12-12
What field type should I use in mysql (via myphpadmin) to set a yes/no field?  I am new to mysql and myphp and am used to working with MS Access
0
Comment
Question by:Susanstevenson
2 Comments
 
LVL 143

Accepted Solution

by:
Guy Hengel [angelIII / a3] earned 50 total points
ID: 22686415
use TINYINT, and store 1/0 (true/false):
http://dev.mysql.com/doc/refman/5.0/en/numeric-types.html
0
 

Author Closing Comment

by:Susanstevenson
ID: 31504991
Thanks!!
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Creating and Managing Databases with phpMyAdmin in cPanel.
This article discusses how to create an extensible mechanism for linked drop downs.
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

791 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question