PDOCrud Change column data type in table(grid)

  
                             $pdocrud = new PDOCrud();
                             $pdocrud->crudTableCol(array("product_name","product_line","product_image","product_url"));
                             //set product_image column to type image and set width and height (you can also set any attribute like style, class)
                             $pdocrud->tableColFormatting("product_image", "image",array("width" =>"100px","height"=>'100px'));
                            //set product_url column to type url and set it's text (you can also set any attribute like style, class)
                             $pdocrud->tableColFormatting("product_url", "url",array("text" =>"View product","target"=>'_blank'));
                             echo $pdocrud->dbTable("products")->render();
                        

Products

Showing 1 to 10 of 98 entries

# Product name Product line Product image Product url Actions
1 1969 Corvair Monza Classic Cars View product
2 1968 Dodge Charger Classic Cars View product
3 1969 Ford Falcon Classic Cars View product
4 1970 Plymouth Hemi Cuda Classic Cars View product
5 1957 Chevy Pickup Trucks and Buses View product
6 1969 Dodge Charger Classic Cars View product
7 1940 Ford Pickup Truck Trucks and Buses View product
8 1993 Mazda RX-7 Classic Cars View product
9 1937 Lincoln Berline Vintage Cars View product
10 1936 Mercedes-Benz 500K Special Roadster Vintage Cars View product
# Product name Product line Product image Product url Actions