Hello all,
I had this code in dashboard.php in wwwroot/app/housekeeping and then moved it to home.php in wwwroot/app/housekeeping/pages and its no broken, username does not show as it did and get an error for the rank
Here is the code thats now broken.
My Guessing is that the classes or what not can not 'stretch' to this location which I have no idea how to fix. Any ideas?
@Sledmore
I had this code in dashboard.php in wwwroot/app/housekeeping and then moved it to home.php in wwwroot/app/housekeeping/pages and its no broken, username does not show as it did and get an error for the rank
{username}
Notice: Undefined variable: users in C:\inetpub\wwwroot\app\housekeeping\pages\home.php on line 69
Fatal error: Call to a member function getInfo() on a non-object in C:\inetpub\wwwroot\app\housekeeping\pages\home.php on line 69
Here is the code thats now broken.
Code:
<h1>{username}</h1>
<h2><?php
$rank = $users->getInfo($_SESSION['user']['id'], 'rank');
if ($rank == 4) { echo 'Media Journalist'; }
else if ($rank == 5) { echo 'Media Editor'; }
else if ($rank == 6) { echo 'Event Host'; }
else if ($rank == 7) { echo 'Event Assistant'; }
else if ($rank == 8) { echo 'Radio DJ'; }
else if ($rank == 9) { echo 'Head DJ'; }
else if ($rank == 10) { echo 'Forum Moderator'; }
else if ($rank == 11) { echo 'Management'; }
else if ($rank == 12) { echo 'Hidden Administration'; }
else if ($rank == 13) { echo 'Global General & Community Management'; }
else if ($rank == 14) { echo 'Ownership & Senior Administration'; }
?>
</h2>
My Guessing is that the classes or what not can not 'stretch' to this location which I have no idea how to fix. Any ideas?
@Sledmore