franklins Posted December 31, 2007 Share Posted December 31, 2007 How do I make a variable in PHP that is only 1 bit long, and how do I make a column in MySQL that is only 1 bit long? Quote Link to comment https://forums.phpfreaks.com/topic/83831-phpmysql-bit/ Share on other sites More sharing options...
rajivgonsalves Posted December 31, 2007 Share Posted December 31, 2007 for mysql you can use the "bit" data type I think its there not too sure tho... don't know about php Quote Link to comment https://forums.phpfreaks.com/topic/83831-phpmysql-bit/#findComment-426654 Share on other sites More sharing options...
franklins Posted December 31, 2007 Author Share Posted December 31, 2007 I tried that and it used up 8 bits instead of 1. Quote Link to comment https://forums.phpfreaks.com/topic/83831-phpmysql-bit/#findComment-426677 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.