First Time to PHP,I have pulled my hair out for 3 days with this watching hours of Tutorials and still can’t get this basic coding done. I could use some help. Let me first say that this entire membership system was freeware from Adam Khoury and works perfect. It is me who has the problem being a Newb.The database and everything else is 100%. Users sign up as A,B or C.
What I am trying to do is take the different user types and give them each a link to a different page of content.
I also am trying to put this link next to the other links in their member account. I have 3 blank pages one for each level. normal_user.php, expert_user.php & super_user.php.
The Code Above the HTML.
[php]// Give different options or display depending on which user type it is
if ($accounttype == “a”) {
$userOptions = “You get options for Normal User”;
} else if ($accounttype == “b”) {
$userOptions = “You get options for Expert User”;
} else {
$userOptions = “You get options for Super User”;
}[/php]
In the HTML below I have tried If’,If else,else and so many other types of code and am getting nowhere.
[php]
<?php echo $toplinks; ?> |
<?php echo "$username"; ?>
Your Account
|
[/php]
I am not looking for someone to do the entire coding here, but if you could just give me a line for the normal user, I should just be able to change a few things in the other 2?
For the person that takes the time to help me with this, Thank You in advance. You have no idea what it is like to work on something for 3 days straight with no success >:( :( :'( :-[. Thanks again. :-*