ryanfilard Posted April 30, 2011 Share Posted April 30, 2011 Hi i created a website where you cam view ip webcams via php. I want to make it so people can make the camera private and public. I made two fields in mysql called "Username" and "Puborprivate" I tried to make the "Puborprivate" have two numbers "0" would be private and "1" would be public. How could I do this? My site is cwuforum.com/live/ Quote Link to comment https://forums.phpfreaks.com/topic/235211-php-private-and-public-pages/ Share on other sites More sharing options...
fugix Posted April 30, 2011 Share Posted April 30, 2011 if its public have the query table set to 1 and if its private have it set to 0..your logic looks okay Quote Link to comment https://forums.phpfreaks.com/topic/235211-php-private-and-public-pages/#findComment-1208751 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.