Search Snippets


31 January, 2012   

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

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

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

Source code for KMP String Search Algorithm

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.

05 August, 2014   

PHP code example to highlight words in a string.

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.

This example code showing how to use PHP Functions to clean User Input

14 February, 2011   

You'll need a of copy Simple Pie for the include right at the top here.

PHP snippet for displaying your latest tweet

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.

26 February, 2011   

This redirects visitors to a new URL using a 301 redirect. Using a 301 redirect is the safest way to let search engines like Google, Yahoo!, Live and Ask know your address has changed.

Source code for Binary tree creation, traversal and search