Strider Posted April 6, 2009 Report Share Posted April 6, 2009 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 Quote Link to comment Share on other sites More sharing options...
Administrators Nabeel Posted April 6, 2009 Administrators Report Share Posted April 6, 2009 Hard to know why if you don't post the code.. Quote Link to comment Share on other sites More sharing options...
Strider Posted April 6, 2009 Author Report Share Posted April 6, 2009 <?php echo void CheckUserInGroup($pilotid, $groupid);?> There you go. Cheers Dan C Quote Link to comment Share on other sites More sharing options...
Administrators Nabeel Posted April 6, 2009 Administrators Report Share Posted April 6, 2009 You have to include the class name from the left side, I think that's echo PilotGroups::CheckUserInGroup(...) no void too Quote Link to comment Share on other sites More sharing options...
Strider Posted April 6, 2009 Author Report Share Posted April 6, 2009 I am not getting any error now, but nothing shows up, everything is just blank. http://globalaircargovirtual.org/index.php/pilots Cheers Dan C Quote Link to comment Share on other sites More sharing options...
Administrators Nabeel Posted April 6, 2009 Administrators Report Share Posted April 6, 2009 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 Quote Link to comment Share on other sites More sharing options...
Strider Posted April 6, 2009 Author Report Share Posted April 6, 2009 I have tried the other functions, and they are not working. I get the word Array at the bottom now. Cheers Dan C Quote Link to comment Share on other sites More sharing options...
Administrators Nabeel Posted April 6, 2009 Administrators Report Share Posted April 6, 2009 so you have to loop through that array or call implode() Quote Link to comment Share on other sites More sharing options...
Strider Posted April 6, 2009 Author Report Share Posted April 6, 2009 How do i call the implode()?? Cheers Dan C Quote Link to comment Share on other sites More sharing options...
Administrators Nabeel Posted April 7, 2009 Administrators Report Share Posted April 7, 2009 Look it up on php.net, they have great reference for anything Quote Link to comment Share on other sites More sharing options...
Strider Posted April 7, 2009 Author Report Share Posted April 7, 2009 Nothing is showing up still. Cheers Dan C Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.