dmacfang8 Posted June 29, 2016 Share Posted June 29, 2016 ok so i have a search bar in my html but what do i need to do to get it to search my html instead of going to google Link to comment Share on other sites More sharing options...
Ingolme Posted June 29, 2016 Share Posted June 29, 2016 You'll need to store the content of all your HTML pages in a database and index them by keywords and such. Then, when the user does a search, pull out URLs based on the keywords typed in by the user. It's not a simple system to implement. If you just want to search for words on the same page, you might as well let the browser do the work, people can press Control+F to find things. 3 Link to comment Share on other sites More sharing options...
dsonesuk Posted June 29, 2016 Share Posted June 29, 2016 Usually the website content along with html is stored in a database, you then use the inputed search criteria to search the database fields that hold the content you wish to search for this specific input search critera string value, usually using SQL 'LIKE %'.$search_string.'%'. Link to comment Share on other sites More sharing options...
rahulteja Posted September 24, 2016 Share Posted September 24, 2016 I am searching for the post like this all over the net. Here, this post gave me knowledge about search functionality. Thanks. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now