Hello everyone! I’ve got a problem with this code which is on the pilote public profile.
<?php
if(PilotGroups::group_has_perm(Auth::$usergroups, ACCESS_ADMIN))
{
echo '<li><strong>Commentaires staff: </strong><?php echo PilotData::GetFieldValue($userinfo->pilotid, ‘Commentaires staff’);?></li> ';
}
?>
Thank you for your help!
Hello everyone! I’ve got a problem with this code which is on the pilote public profile.
<?php
if(PilotGroups::group_has_perm(Auth::$usergroups, ACCESS_ADMIN))
{
echo '<li><strong>Commentaires staff: </strong><?php echo PilotData::GetFieldValue($userinfo->pilotid, ‘Commentaires staff’);?></li> ';
}
?>
Thank you for your help!
Im not sure if this will work, but you might need a closing tag:
<?php
}
?>
Hello everyone! I’ve got a problem with this code which is on the pilote public profile.
<?php
if(PilotGroups::group_has_perm(Auth::$usergroups, ACCESS_ADMIN))
{
echo '<li><strong>Commentaires staff: </strong> <?php echo PilotData::GetFieldValue($userinfo->pilotid, ‘Commentaires staff’) ;?> </li> ';
}
?>
Thank you for your help!
You have php tags within already open php tags, you need to adjust the code around those instances.
I tried your solution but it doesn’t work. Can someone correct me the php code, please?
Thank you!
Thanks for this solution. It works great.