Hi everyone.
I’m just learning php, but I’m stuck on this. I’m trying to display a tabbed interface on a web page if the user’s role is “coach” but if not then output some other php/html.
The tabs work fine, but at the moment the tabs show no matter what the user’s role is.
So far I’ve got this structure:
<? if($user_data['role'] = "coach"){?> <div id="TabbedPanels1" class="TabbedPanels">
HTML and php goes here and is displayed if the role =coach
</div>
}
else {
Some other html
Any help or guidance gratefully received.