Link to home
Start Free TrialLog in
Avatar of Sandy Sailer
Sandy SailerFlag for United States of America

asked on

PHP Combo Box (like in MS Access)

I have a table that is going to grow considerably as the site grows with names of businesses.  I don't think I can realistically put this list of businesses in a <select></select> tag using PHP to grab the names from the database due to the size and potential number of records.  Is there such a thing as a "combo box" in PHP, which will recognize an entry once the user starts typing, without loading the entire database table into the list box first?  I'm just thinking that this could be too taxing on a shared server.  I hope I'm making sense!
SOLUTION
Avatar of jhheider
jhheider
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Avatar of Dave Baldwin
Dave Baldwin
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Sandy Sailer

ASKER

I need to be able to get the results from records in a database, and I didn't see any demos for the auto suggest.  Does this plug-in tap into a database table?
This line in autosuggest.js myAjax.makeRequest( url, meth, onSuccessFunc, onErrorFunc ); call 'test.php'.  'test.php' in the demo has a static array to get the info.  You could convert that into a database access.

There are many other demos available with PHP/MySQL code.  https://www.google.com/search?q=ajax+autosuggest+php+mysql
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Actually, I found an extension at DMX Zone that does exactly what I'm looking for.  It's called the Ajax AutoComplete.