database - how to create a search bar? -
i want idea how go adding asearch bar in website?
please note don't want create google api or google search engine. when user search inside search bar results website should show up. , not random websites.
i thinking:
i planning on creating table called "searchtable". table have 3 cols. can add links of website in "links" cols. , search using keywords.
table: searchtable(id, links, keywords)
and can search using following query
select * searchtable keywords '%searchword%'"
are there other ways of doing this?
Comments
Post a Comment