hiii!
Can any one help me to add super user to my login script that can veiw and edit all user,
and evry user can veiw his/her profile like facebook.
hope you people will help me.
sultankhan
0
Junior Poster in Training
Recommended Answers
Jump to PostWith what bit do you need help? 100 odd lines of code - can you whittle it down a bit?
Jump to PostFor me a simple solution works off the session variable (
$_SESSION['user_level']
).
If an user is logged in, they should see their own profile page (including the admin user) - this works off$_SESSION['user_id']
. This is only set when an user/admin has logged in.The
$_SESSION['user_level']
could hold …
Jump to Postsorry:
header('Location: index.php'); exit;
Jump to PostIf this in in the index.php, then you don't want to redirect to the index.php as you may get an infinite redirect loop.
Jump to PostOk, mark thread as solved.
All 21 Replies
sultankhan
0
Junior Poster in Training
sultankhan
0
Junior Poster in Training
diafol
sultankhan
0
Junior Poster in Training
sultankhan
0
Junior Poster in Training
diafol
sultankhan
0
Junior Poster in Training
sultankhan
0
Junior Poster in Training
diafol
sultankhan
0
Junior Poster in Training
diafol
sultankhan
0
Junior Poster in Training
sultankhan
0
Junior Poster in Training
sultankhan
0
Junior Poster in Training
sultankhan
0
Junior Poster in Training
diafol
sultankhan
0
Junior Poster in Training
diafol
sultankhan
0
Junior Poster in Training
diafol
diafol
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.