Can you also help me in displaying the names which is there in the database!

Instead giving all the names in the script, i will maintain a table named names.

So i should retrive those names and should display it in the suggestion box same way how you have did using javascript suggestion box!