Hi
I want to display my own data based on database value.
$col = array();
$col["title"] = "category";
$col["name"] = "category";
$col["width"] = "50";
$cols[] = $col;
This gives me number (1-10). Now i want to display the actual category of the candidate. if it is 1 means General 2 means some other category and so on.
I have used this
$col["on_data_display"] = array("display_keyword","");
function display_keyword($data)
{
if ($data["category"] == 1)
return "General";
elseif ($data["category"] == 2)
return "OBC";
}
But this is not working. I have refereed https://phpgrid.desk.com/customer/portal/questions/1527265-question . Link is also not working.
Please help me and correct the code if possible.
1 Answers
Your Answer