Set Search col data type Change data type of search column

You can set search col data type to date/datetime/time etc to make search more friendly. Default type is text. For example When you set search column data type to date-range, it will show date range options.

  
                                $pdocrud = new PDOCrud(); 
                                //set the search column data type
                                $pdocrud->setSearchColumnDataType("order_date", "date-range");// other options are time-range, datetime-range
                                echo $pdocrud->dbTable("orders")->render();
                                

Orders

Showing 1 to 10 of 105 entries

# ID Order no Order date Customer name Order amount Order status Actions
1 80 74040 2016-09-10 52 Completed
2 82 84334 2016-09-08 Xenos Clarke 7 Completed
3 83 91414 2016-09-08 Xenos Clarke 91 Completed
4 85 71212 2016-09-08 33 Completed
5 86 14459 2016-09-08 43 Completed
6 87 22844 2016-09-08 17 Completed
7 88 43892 2016-09-08 55 Completed
8 89 72412 2016-09-08 22 Completed
9 90 64889 2016-09-08 Xenos Clarke 46 Completed
10 91 5518 2016-09-08 Cooper Jensen 64 Completed
# ID Order no Order date Customer name Order amount Order status Actions