PHP Classes

File: readme.txt

Recommend this page to a friend!
  Classes of Vick   PHP Search   readme.txt   Download  
File: readme.txt
Role: Documentation
Content type: text/plain
Description: readme
Class: PHP Search
Search for data MySQL tables and show the results
Author: By
Last change:
Date: 19 years ago
Size: 894 bytes
 

Contents

Class file image Download
1-Edit the config file 2-Include the recherche.class.inc file in the appropriate file 3-Instanciate the class and call the _show() function with the appropriate parameters exactly where you want it ***Note that all parameters are required and specially the primary key of the table**** it goes like this: <? $r= new RECHERCHE(); $r->_show('search_file', 'searched_table', $arr=array("*Primary_key*", "field1", "field2", ...), 'url_for_selected_item', 'order','700px'); ?> the -searche_file is the file within the class is called -searched_table is ... i don't remember... -$arr is the array containig the searched fields, primary key is required -url_for_selected_item is the file that will be called in the href of the results(that's why the pk) -order is the "order by field" like "field1 DESC" -and finally the width of the display table