Jump to content

Profile Types PHP Condition?


Hadeszeus

Recommended Posts

In Account manage page. How can I code in PHP to display only the section I want depends on profile types?
 
For example I have 2 profile types
 
B1 and B2
 
When B1 account is login I will display Hi else display Hello for B2.
 
 

if ($user['User']['ProfileType']) == 1) {
echo 'Hi';
}
else {
echo 'Hello';
} 

 
 
 
Thanks in advanced!

Edited by Hadeszeus
Link to comment
×
×
  • Create New...