Jump to content
MakeWebGames

Recommended Posts

Posted

Guys,

I made a boo boo.

In my admin panel, i changed my status to member by accident (doing things too quickly and not reading properly)

I am guessing that i wont be able to undo what i have done or give myself admin access unless i go into phpmyadmin. So my question is this, where or what on phpmyadmin do i need to do to make myself an admin again?

Thanks for your help in advance :)

Posted

Go into PHPMyAdmin and run this command >

[mysql]UPDATE users SET user_level=2 WHERE userid=1;[/mysql]

Replace the userid if your not ID 1 :)

Posted

For future reference, you could just go into the phpmyadmin and go into the users table and click browse. Look for your name and then click it too edit and edit user_level to 2 i think.

Guest cablebox
Posted

Haha! Not really that difficult to fix without putting in a command :P Just do what Redex said

Posted
Or simply

 

In header.php

$db->query("UPDATE users SET user_level=2 WHERE userid=1");

 

Not too hard now xD

I wouldn't do that, it's pointless! Why would you run a query every page load that updates one specific field over and over again?

Posted
Or simply

 

In header.php

$db->query("UPDATE users SET user_level=2 WHERE userid=1");

 

Not too hard now xD

I wouldn't do that, it's pointless! Why would you run a query every page load that updates one specific field over and over again?

simply goto myphpadmin and input the following into the SQL

[mysql]

UPDATE `users` SET `user_level` = 2 WHERE `userid` = 1

[/mysql]

David did say this on like the 2nd post...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...