<?php if ($user) = true include ("headerlogin.php") true; else if ($user) = false include ("headerlogin.php") false ?>
I know that this is wrong and you all get to see how bad I am at coding with if and else statements but I am hoping that I am on the right track, any help with this would be greatly appreciated. I also hope that making another php file to call upon the buttons was a smarter choice than just writing it up in a div tag to be called upon.
This is what I have up and running on my site at the moment which has allowed me to do the visual layout of the user buttons, but it isn't working how I would like.
<?php if ($forum_user_online['user_id'] > include("headerlogin.php")); ?>
so for a rough overview if I have confused the hell out of you all
when a user is logged in there are more buttons that pop up on the screen
when a user is not logged in there is only a login button
Thank you for any and all of your help
oh yeah the site is KlayDetailing if you want to see what I'm doing and get a scope on what I am trying to achieve