Search Words Snippets


This code will break a string of words up along the spaces and do a mySQL search for each of the words in the string.

This code will break a string of words up along the spaces and do a mySQL search for each of the words in the string.

You may use this code to highlight specific words in your displaying search results.

05 August, 2014   

PHP code example to highlight words in a string.

07 April, 2013   

Search a body of text for the most common words

31 January, 2012   

Use this code to put Google search bar on web page.

13 June, 2016   

As a "preview" of text, this MySQL select will return the first few words out of a text field in a database. It returns entire words (doesn't cut them off in the middle) and follows the last word with an elipse "..."

03 April, 2013   

Nice little search form snippet using HTML and CSS

30 January, 2013   

JQueryUI Search Auto complete Jump Menu with data from remote URL

Several hundred user notes on the str_replace page later, and we have a function that provides a variety of text highlighting options for plaintext or HTML strings.

23 November, 2013   

You can search and replace fields by below query in MySQL Database

MySQL MATCH() function performs a natural language search for a string against a text

12 January, 2013   

Search the source code of all stored procedures.

User below meta tag to prevent all search bots from indexing a page

Append Non-Breaking Space Between Last Two Words

Source code for KMP String Search Algorithm

02 March, 2013   

Java code example shown here how to convert a number to words

If a string is contained in another string and you need to search for it, this is a very clever way to do it:

02 April, 2017   

Last name matches the user input and returns their phone and email information

Open up a text editor, copy & paste the code below. Save the file as: "commandlinefu.py" and exit the editor.