PDO Crud
1
2
3
4
5
$pdocrud = new PDOCrud();
//column_name, replace, array of value and replace value array (you can also write in one statement, rather than two)
$pdocrud->tableColFormatting("order_status", "replace",array("Completed" =>"<i class="\"fa" fa-thumbs-up\"="" aria-hidden="\"true\""></i>"));
$pdocrud->tableColFormatting("order_status", "replace",array("Pending" =>"<i class="\"fa" fa-thumbs-down\"="" aria-hidden="\"true\""></i>"));
echo $pdocrud->dbTable("orders")->render();
Plain Polecat