Jump to content

Best way to build interests section?


Recommended Posts

Hi all,

 

I have a small user community website ~250 users, and I want to add a section where they can enter there interests.

 

Users can enter their interests manually, So user X will add Tennis, Football, Basketball. If user Y then goes to enter his, as hes typing I want a script to check the DB to see if theres any possible values that match, so if he type FOO football would appear.

 

My idea is that after X months the table will have plenty of options and most interests will be auto completed.

 

What im asking is how is the best way to do this?

 

Does this make sense?

 

 

Link to comment
https://forums.phpfreaks.com/topic/240899-best-way-to-build-interests-section/
Share on other sites

Well for one you will need to do this with AJAX. If you want to build it from scratch, and you don't know javascript/ajax or even Jquery than you will have to learn that first. However, if you do a google search for AJAX autocompleter or AJAX autosuggester you will probably find some libraries that will suit your needs. Personally, I would probably use some sort of Jquery library or add-on.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.