Front End - Choose from multiple records with checkboxes with selection limit

2 posts by 2 authors in: Forums > CMS Builder
Last Post: March 31, 2015   (RSS)

By gregThomas - March 31, 2015

Hi,

If I was implementing this system, I'd store the players chosen by users in a separate section to the player. I've attached an example of how I'd a link the sections together (the members would be your front end players). You'd have to use the mysql_count function to ensure that users don't have more than 5 players stored against their account. 

Using checkboxes to allow users to select 5 players would work fine, the only potential issue I can see with that system is if you have hundreds of players that site users have to filter through to find the players they want to use. 

Although you could use the Favourites plugin to build this system, you'd have to modify it to only allow users to save 5 favourites and it would have less flexibilty, so it might be better better to build your own system. Although building your own system will probably take longer. 

Let me know if you have any specific questions about the implementation. 

Cheers,

Greg

Greg Thomas







PHP Programmer - interactivetools.com
Attachments:

db_example.png 8K