Ibnatu Posted June 17, 2008 Share Posted June 17, 2008 Hello! I've made an option for users of a script to choose "On" or "Off" via buttons. how should i set up the database properly? what settings should the feild have? its going to be in the phpfox_user database of my site. so i need an option where users will choose on or off. THEN i need to display the information to choose a template file. so i can use an if statement based on the users information, so how would i display it like this? Quote Link to comment https://forums.phpfreaks.com/topic/110547-mysql-database-display-help/ Share on other sites More sharing options...
Xurion Posted June 17, 2008 Share Posted June 17, 2008 Your field in the database should mimic your GUI for clarity. Set the column to either 'on' or 'off' and check it for those values when you need to. Quote Link to comment https://forums.phpfreaks.com/topic/110547-mysql-database-display-help/#findComment-567349 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.