Blame Posted January 5, 2011 Share Posted January 5, 2011 I have a database table ID, username, they are the only columns. i want to create a page that will search the database for text that is like so if i type in "user" the table below will start to fetch results from the text entered. Quote Link to comment Share on other sites More sharing options...
Maq Posted January 5, 2011 Share Posted January 5, 2011 So what's the problem? Quote Link to comment Share on other sites More sharing options...
Blame Posted January 5, 2011 Author Share Posted January 5, 2011 dunno how to start the code i need help creating it Quote Link to comment Share on other sites More sharing options...
Zurev Posted January 5, 2011 Share Posted January 5, 2011 Well this isn't really for creating code from scratch for you, that would be freelancing. I would suggest doing some research through google first, there are a ton of resources out there. http://lmgtfy.com/?q=ajax+autocomplete+php+tutorial Quote Link to comment Share on other sites More sharing options...
shayward2003 Posted January 5, 2011 Share Posted January 5, 2011 Are you wanting to make it search like the new google search (google instant)... so that it instantly searches as you type in your query? What are you going to be searching? (e.g., User names, keywords, etc.) Quote Link to comment Share on other sites More sharing options...
Blame Posted January 5, 2011 Author Share Posted January 5, 2011 Are you wanting to make it search like the new google search (google instant)... so that it instantly searches as you type in your query? What are you going to be searching? (e.g., User names, keywords, etc.) Yea mate Quote Link to comment Share on other sites More sharing options...
Maq Posted January 5, 2011 Share Posted January 5, 2011 Here are two examples: One with JQuery - http://andreaslagerkvist.com/jquery/live-search/ One with raw JS - http://www.w3schools.com/php/php_ajax_livesearch.asp Quote Link to comment Share on other sites More sharing options...
shayward2003 Posted January 5, 2011 Share Posted January 5, 2011 I would suggest the w3school one... Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.