Set Search Columns Option to set search columns instead of all columns (Added in v 3.5.2)

You can set which search columns to be shown instead of showing all columns of table in search box.

  
                                $pdocrud = new PDOCrud();
                                $pdocrud->setSearchCols(array("id","first_name"));
                                echo $pdocrud->dbTable("employee")->render();
                        

Employee

Showing 1 to 10 of 72 entries

# Id First name Last name Address City State Zip Actions
1 129 San James 101 main St Denver CO 76556
2 125 Yves222 Goulin 6 rue de Vienne 75008 Paris Paris1 Paris 75008
3 123 Yves Goulin 6 rue de Vienne Paris Paris 75008
4 121 Jaroslav Rohal Trnavska cesta 74/D Bratislava Slovensk√° republika 82102
5 126 Bill Smith 1234 Main Sd ca 85978
6 127 dasdas dasdas green ln ave dsad asdas dasd
7 35 Lanaa Englanda 576-4991 Enim Av.a Johnstowna FLa 72504a
8 36 Cassandra Graves 87987 1951 Turpis. Street Dickinson MS 14187
9 38 Kuame Huffman 793-1081 In, Av. South El Monte MA 80857
10 39 Xenos Clarke 437-3387 Arcu Road Newburgh NV 05780
# Id First name Last name Address City State Zip Actions