Show pilot groups in roster

I am trying to get the groups the pilots are in to show on the roster, so you know which pilot is in which group, I am having some trouble with it and am getting an error.

Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in /home/globalai/public_html/lib/skins/global/pilots_list.tpl on line 61

Cheers

Dan C

Hard to know why if you don’t post the code..

<?php echo void CheckUserInGroup($pilotid, $groupid);?>

There you go.

Cheers

Dan C

You have to include the class name from the left side, I think that’s

echo PilotGroups::CheckUserInGroup(…)

no void too

I am not getting any error now, but nothing shows up, everything is just blank. http://globalaircargovirtual.org/index.php/pilots

Cheers

Dan C

I think that function just checks if they’re in a certain group. There’s another function which will return an array of the groups they’re in

I have tried the other functions, and they are not working. I get the word Array at the bottom now.

Cheers

Dan C

so you have to loop through that array or call implode()

How do i call the implode()??

Cheers

Dan C

Look it up on php.net, they have great reference for anything

Nothing is showing up still.

Cheers

Dan C