Hi all, I was wondering if there was any way that I can have a webpage with
a text field that acts as a search box and when someone types even one
character (letter or number) into the text field, it will access a mysql
database and show results for any field in the db that starts with that
letter. This is essentially an instantaneous database search script. Any
ideas?
Some things to consider: when someone types in multiple characters, the
database needs to be accessed everytime for each character. For example,
someone types into the text field very quickly the letters: "ted" The
javascript will search the database for any entries that start with "t",
then narrow it down to all entries that start with "te" then all entries
that start with "ted"...etc .
And it if cannot be done in javascript, can it be done in any other
language?
Thanks in advance,
Mosher
a text field that acts as a search box and when someone types even one
character (letter or number) into the text field, it will access a mysql
database and show results for any field in the db that starts with that
letter. This is essentially an instantaneous database search script. Any
ideas?
Some things to consider: when someone types in multiple characters, the
database needs to be accessed everytime for each character. For example,
someone types into the text field very quickly the letters: "ted" The
javascript will search the database for any entries that start with "t",
then narrow it down to all entries that start with "te" then all entries
that start with "ted"...etc .
And it if cannot be done in javascript, can it be done in any other
language?
Thanks in advance,
Mosher
Comment