hi,
I am displaying a link in a column. The link allows user to download a pdf.
I have four statuses in the database. The link should only appear only for one particular status('P'). How can I do it?
Thanks,
Sri
1 Answers
For extended conditional data, you can also have callback function, that will allow you to display based on row data. For e.g.
$col["on_data_display"] = array("display_keyword","");
function display_keyword($data)
{
$kw = $data["keyword_name"];
$numKeywords = count(explode("n",$pass));
if ($numKeywords > 3)
return $numKeywords." Keywords";
else
{
$pass = str_replace("+"," ",$pass);
return $pass;
}
}
Your Answer