12-16-2008, 11:28 AM
|
#11 (permalink)
|
|
The Prestige
Join Date: Sep 2007
Location: Sweden, Stockholm
Posts: 1,080
Thanks: 115
|
Because when you run a check to make someone an admin, you have:
PHP Code:
if($mysql['emailid'] == 'none@no-host.com') $_SESSION['admin'] = true;
When you change his email, he won't be an admin and you have to MANUALLY change the script. Instead of just having
PHP Code:
if($mysql['emailid'] == 3) $_SESSION['admin'] = true;
That way you can change his email without him losing his admin-status.
This isn't really a very good example, but it's just a small one to illustrate that you SHOULD have the id as a numeric.
And if you're getting alot of problems with auto increment, sorry for this, but that doesn't mean it's _wrong_. It could mean that you just need to practice more.
__________________
|
|
|
|