Jump to content

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.

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.