Solved

yes/no field in mysql using myphpadmin

Posted on 2008-10-10
2
895 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 142

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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

This article discusses four methods for overlaying images in a container on a web page
3 proven steps to speed up Magento powered sites. The article focus is on optimizing time to first byte (TTFB), full page caching and configuring server for optimal performance.
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
The viewer will learn how to dynamically set the form action using jQuery.

776 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