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 95 entries

# Id First name Last name Address City State Zip Actions
1 8 Florence Merrill 999 Eget Avenue Pawtucket AL 56012
2 11 Susan Floyd less 2138 Mauris Rd. Kent SD 94619
3 12 Ocean Welch Ap #328-4231 Aliquam Ave Durango MN 34848
4 13 Olympia Reid Ap #119-6421 Vulputate St. Laconia AL 42649
5 14 Leigh Madden 1134 Commodo St. Jeannette IN 64702
6 15 Jenna Sims Ap #188-3087 Semper Rd. White Plains CO 51000
7 16 Marsden Mcknight 891-2555 Ligula Av. Peekskill VT 38453
8 17 Demetria Mooney Ap #400-7304 Vehicula Ave Signal Hill GA 32448
9 18 April Copeland P.O. Box 940, 1713 Nunc Rd. White Plains CA 98831
10 19 Jason Hale Ap #667-483 Vulputate, St. Ventura SC 09689
# Id First name Last name Address City State Zip Actions