|Ratings|| ||Unique User Downloads|| ||Download Rankings|
| 69%||Total: 8,726 ||All time: 186 This week: 135|
This class can perform basic searches in MySQL tables.
It can take parameters that define the tables and fields to be searched and retrieved and the fields that define the results sorting order.
The class returns the search results in the form of an HTML table or a text displaying a message when the search query did not return any results.
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');
-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
||Applications that use this package
No pages of applications that use this class were specified.
If you know an application of this package, send a message to the author to add a link here.
||Pages that reference this package
Latest pages that reference packages