Login   Register  
PHP Classes

Class: Database Search

Icontem
elePHPant

  Classes of Tomasz Wilk  >  Database Search  >  Download  >  Support forum Support forum (2)  >  Blog Blog  >  RSS 1.0 feed RSS 2.0 feed Latest changes  
Name: Database Search Support forum
Base name: dbsearch
Description: Search for words and phrases in a a MySQL table
Version: -
Required PHP version: -
License: GNU General Public License (GPL)
 
  Screenshots Screenshots   Author   Group folder image Groups   Detailed description  
  Applications   Files Files  

Screenshots

Search form
File Role Description
Accessible without login Image file dbsrch.jpg Screen Search form

Author

Picture of Tomasz Wilk
Name: Tomasz Wilk <e-mail contact>
Published packages: 1 Browse this author's classes Browse this author's classes
Country: Poland Poland - PHP jobs in Poland
Home page: http://www.wilku.prv.pl/

Groups

Group folder image Databases Database management, accessing and searching View top rated classes
Group folder image Searching Search engines, crawling and indexing View top rated classes

Detailed description

This class can be used to search for words and phrases in text fields of a MySQL database table.

It can generate a Web search form with an input field to enter the search text, a submit button and radio buttons to let the user tell whether the search should find records with all the words or at least one of them. The form text and presentation style is configurable with CSS.

The class can perform the search for the specified text with prior cleanup to avoid security exploits. The searched text is stored in a session variable so the user can be reminded of the last search.

The search can treat words separately or as phrases when the user encloses the words in double quotes.

The search results are returned in an array that contains a list of distinct records that matched the searched text.

The table name and the table fields to be searched and the fields to be returned as result of the search are configurable.

Applications that use this class

No application links were specified for this class.
Add link image If you know an application of this package, send a message to the author to add a link here.

Files

File Role Description
Plain text file DatabaseSearch.php Class DatabaseSearch class definition
Plain text file DatabaseSearchDocumentation.txt Doc. Short manual
Plain text file DbSrchExample.php Example How to use this class.
Download all files: dbsearch.tar.gz dbsearch.zip
NOTICE: if you are using a download manager program like 'GetRight', please Login before trying to download this archive.