View Single Post
Old 01-30-2013, 01:38 PM   PM User | #4
rgEffects
New Coder

 
Join Date: Aug 2012
Posts: 76
Thanks: 22
Thanked 0 Times in 0 Posts
rgEffects is an unknown quantity at this point
I was way over thinking this problem I ended up simplifying the code substantially and just dropping it to the bottom of the php that runs before the HTML starts. The code that works is amazingly simple.
PHP Code:
if(!session_id()) session_start(); 
switch(
$_SESSION['MM_UserGroup']) { 
case 
"2"
header("Location: ../au243/netAdmin/userDashboard.php"); 
break; 

I also discovered that I could add as many 'cases and header locations ad I want for various levels.

I hope this solution solves problems for others. As is my usual practice, I tend to make things way too complicated.
rgEffects is offline   Reply With Quote