Welcome To Snipplr


Everyone's Recent PHP Snippets Tagged search



« Prev 1 2
An Utility to Search Text in All Files of Any Directory in PHP
1 5488 posted 11 years ago by ursdeep
Simple PHP search with whole word extract and highlighted search word
0 2110 posted 11 years ago by flatearthcomms
Product Instant Search is a free Magento search extension that enables automatically searching right after typing a character and shows the first search result with an “add to cart” form. <p>_ Show other search results in product’s thumbnail i...
0 1922 posted 11 years ago by magestore
Function to check existence of value in multidimensional array.
0 1876 posted 12 years ago by Sadeveloper
PrestaShop Advance SEO module is offered by FME. This module is used to configure On Page SEO components of Product pages. The Meta title, keywords and descriptions can be utilized by using this module. Due to its intelligent formula this module is a...
0 2192 posted 12 years ago by AlastairBrian
Use it similar to in_array function of PHP.
0 2096 posted 13 years ago by kosinix
This function searches the current working directory (or any other directory path that you specify with parameter $p) for a file, named $f, and returns the full path and filename of the first occurrence, or false if it is either not found or the maxi...
0 1649 posted 13 years ago by VisionHive
Search recursively some value in array with the key name
0 1859 posted 14 years ago by MonsterDev
prints "We found 'N' result(s) for 'QUERYSTRING'"
0 1577 posted 15 years ago by dan_hoerr
0 1523 posted 15 years ago by psteinweber
0 1294 posted 15 years ago by zealmurapa
0 2484 posted 15 years ago by Japan
I thought this was pretty elegant code and wanted to share it with anyone who found it useful.
0 1582 posted 15 years ago by mattneary
I use the following code to prevent a user from getting a "webpage expired" message when hitting the back button on a page where the search results are also on the page with the form.
0 2824 posted 15 years ago by bradless
A blank search in wordpress returns all the posts, which could be taken as duplicate content if that got indexed.
0 1623 posted 15 years ago by baires
Add this in search.php
0 1583 posted 15 years ago by laurentzziu
Im pretty new to oop php i have tried to create a php search function but im sure this needs alot of improvement. So add on :D
0 1328 posted 15 years ago by JonnySnip3r
The total number of search results can be added in a hook_preprocess_search_results() function from the following variable:
0 1701 posted 15 years ago by jonathanpglick
Open your search.php file and find the the_title() function. Replace it with the following: 1.echo $title; Save the search.php file and open style.css. Append the following line to it: strong.search-excerpt { background: yellow; }
0 1621 posted 15 years ago by newsok
0 1891 posted 15 years ago by newsok
2 1939 posted 15 years ago by adkatrit
example I used to create a auto suggest search from that pulls from a database. The example pulls from a single db table containing categories. Using jQueryUI made this pretty painless but by default the autocomplete feature uses GET variables and...
4 2117 posted 15 years ago by myke
To exclude pages from wordpress search results include the following in your theme's functions.php
0 1473 posted 16 years ago by myke
$search_string - переменная для поиска
0 1567 posted 16 years ago by stancox
like array_search but compares against a specific key in each element of the array
2 1903 posted 16 years ago by iloveitaly
Wizzlern, a Dutch Drupal trainer, has a Dutch article online on how to remove the "search this site" label in the Drupal search-block.
2 1857 posted 16 years ago by berkes
Searches all array elements for a given substring. Returns an array of found key=>value pairs or false if not found.
0 1699 posted 16 years ago by lancemonotone
0 1764 posted 16 years ago by bitmanic
« Prev 1 2