Chikenty Posted November 4, 2006 Share Posted November 4, 2006 K i am doing a stat thing for bf2:MC and i want to have a bunch of check boxes in the edit profile...But in the member profile view i want codes that if those certain medals r checked then it will display the medals picture Link to comment https://forums.phpfreaks.com/topic/26154-checkbox-display/ Share on other sites More sharing options...
Psycho Posted November 4, 2006 Share Posted November 4, 2006 Do you have a question?Have you even started, what code do you have so far, what are you having a problem with.You haven't given any details about the environments, such as if you are incorporating this into an existing CMS site or wether you are using a database.That being said, I will assume you will be using a database. So, on the profile page save the checbox values as a true/false for each item to the database. Then on the display page query the data and display a photo for any volumns where the value is true. Link to comment https://forums.phpfreaks.com/topic/26154-checkbox-display/#findComment-119586 Share on other sites More sharing options...
Chikenty Posted November 5, 2006 Author Share Posted November 5, 2006 all i need to do is the checkboxes and the display..yes im using a database...also i wonderd if i needed to make seperate column for each 'medal' or they could be in 1 column 'medals' Link to comment https://forums.phpfreaks.com/topic/26154-checkbox-display/#findComment-119769 Share on other sites More sharing options...
Kelset Posted November 5, 2006 Share Posted November 5, 2006 So the checkboxes are going to be a admin kind of thing? and when the player goes to his members profile he will see a list of images that are his medals. Sounds easy enough and I think mjdamato has it right :)Just set the check box to true or flase with default being false. Then make the check box have a value of true whenchecked. On the members profile just do a check on the medals col and display the ones marked true.Cheers!Stephen Link to comment https://forums.phpfreaks.com/topic/26154-checkbox-display/#findComment-119777 Share on other sites More sharing options...
Chikenty Posted November 5, 2006 Author Share Posted November 5, 2006 yea i understand that but i dont kno how to code...was wonderin if u could lead me to any tuts or maybe gimme a lil sumthing thanks....thanks for ur replys u 2and another thing.. Link to comment https://forums.phpfreaks.com/topic/26154-checkbox-display/#findComment-119794 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.