Display own data based on database value

QuestionsDisplay own data based on database value
Ankur Garg asked 10 years ago

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
Abu Ghufran answered 10 years ago

Hello,

Custom events function is supported in full version.
If you already using full version, email me your order number for update.

Your Answer

10 + 18 =

Login with your Social Id:

OR, enter

Attach code here and paste link in question.
Attach screenshot here and paste link in question.



How useful was this discussion?

Click on a star to rate it!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate it.

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?