Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 148567
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T08:58:54+00:00 2026-05-11T08:58:54+00:00

i am trying to create a Ajax live search for my website. I currently

  • 0

i am trying to create a Ajax live search for my website. I currently can query the database for titles and display them under my search (See Fig 1.0) however i need to make them selectable so that when you do select them, it will set the input value to that title, very much like on wikipdia search Wikipedia Search. The wikipedia example is basicly what I am looking for. Any help would be great.

Thanks, CHL UK

My Search so far http://www.webquark.co.uk/Search.bmp

Fig 1.0

CODE: PHP DB search

    <?    // Get value coming from request   $search = mysql_real_escape_string ($_GET['search']);     // Connect to DB   mysql_connect('localhost', '****', '****') or die(mysql_error()) ; mysql_select_db('*****') or die(mysql_error()) ;  $result = mysql_query('SELECT * FROM dbArticle WHERE title LIKE '%$search%' OR type LIKE '%$search%'  OR username LIKE '%$search%'');   while($row = mysql_fetch_array($result))   // Check if name exists in table   if (!empty($row['title'])) {   echo ''.$row['title'].'<br />';}   if (!empty($row['type'])) {   echo ''.$row['type'].'<br />';}   if (!empty($row['username'])) {   echo ''.$row['username'].'<br />';}    //Close connection   mysql_close();   ?> 

CODE:PHP Search Input

<div id='navSearch'>   <form method='post' action='index.php?pageContent=search'>   <li><input type='text' maxlength='30' size='22' name='search' onkeyup='send_requestSearch(this);'/> </li>   <li><input type='submit' value='Search' name='submit'/></li>   <div class='liveSearch' id='livesearch'></div>   </form> 

If you need to see my Javascript let me know.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-11T08:58:55+00:00Added an answer on May 11, 2026 at 8:58 am

    The control you are looking for is called a suggester. Try searching google for ‘ajax suggestion’. You will find a few tutorials on how to do it. Here’s one: link

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to create a multi-level ajax form on my rails app that can
I'm trying to create an AJAX control and I'm unable to see the property
I am trying to create website to show a live twitter feed concerning a
Im trying to create an ajax (post) event that will populate a table in
I'm trying to create a AJAX push implementation in PHP using a Comet long-polling
I am trying to create a little ajax chat system (just for the heck
I am trying to create a simple ajax grid that allows me to add
I am trying to create a dynamic 'page' listing for threads/comments using AJAX. in
I am trying to create a simple log in system that uses ajax but
I'm trying to create a global handler that gets called before the ajax success

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.