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. Link to comment https://forums.phpfreaks.com/topic/223526-ajax-search/ Share on other sites More sharing options...
Maq Posted January 5, 2011 Share Posted January 5, 2011 So what's the problem? Link to comment https://forums.phpfreaks.com/topic/223526-ajax-search/#findComment-1155407 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 Link to comment https://forums.phpfreaks.com/topic/223526-ajax-search/#findComment-1155409 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 Link to comment https://forums.phpfreaks.com/topic/223526-ajax-search/#findComment-1155413 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.) Link to comment https://forums.phpfreaks.com/topic/223526-ajax-search/#findComment-1155415 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 Link to comment https://forums.phpfreaks.com/topic/223526-ajax-search/#findComment-1155421 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 Link to comment https://forums.phpfreaks.com/topic/223526-ajax-search/#findComment-1155423 Share on other sites More sharing options...
shayward2003 Posted January 5, 2011 Share Posted January 5, 2011 I would suggest the w3school one... Link to comment https://forums.phpfreaks.com/topic/223526-ajax-search/#findComment-1155425 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.