* Edit data with link :
$value = "<a href=\"fruit_edit.php?editid1=".$data["fruit_type"]."\">".$value."</a>";
* Give different color for text in list :
if ($value == "NEW SERVICE") {
$color="green";
} elseif ($value == "IN PROGRESS") {
$color="brown";
} elseif ($value == "AWAITING CUSTOMER") {
$color="blue";
} else {
$color="black";
}
$value="<span style='color: " . $color . "'>" .$value . "</span>";
* Only show month and year from date :
$Mon=date('M', strtotime($data["date"]));
$year=date('Y', strtotime($data["date"]));
$value=$Mon.' '.$year;
Merasa terbantu oleh artikel atau tutorial dalam blog ini? Thank you for your donation.. ^^
© 1988 - 2016 E-NALDI Personal Website. Please add me : |
|