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
nabeel
April 6, 2009, 4:23pm
2
Hard to know why if you don’t post the code..
<?php echo void CheckUserInGroup($pilotid, $groupid);?>
There you go.
Cheers
Dan C
nabeel
April 6, 2009, 4:50pm
4
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
nabeel
April 6, 2009, 6:10pm
6
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
nabeel
April 6, 2009, 10:17pm
8
so you have to loop through that array or call implode()
How do i call the implode()??
Cheers
Dan C
nabeel
April 7, 2009, 1:36am
10
Look it up on php.net , they have great reference for anything
Nothing is showing up still.
Cheers
Dan C