• Unfortunately, we have experienced significant hard drive damage that requires urgent maintenance and rebuilding. The forum will be a state of read only until we install our new drives and rebuild all the configurations needed. Please follow our Facebook page for updates, we will be back up shortly! (The forum could go offline at any given time due to the nature of the failed drives whilst awaiting the upgrades.) When you see an Incapsula error, you know we are in the process of migration.

Web MySQL Selecting Users with a value

Experienced Elementalist
Joined
Jul 19, 2011
Messages
288
Reaction score
32
Here is a mysql command to find out who is a GM on your server.
You probably already know the command though. xD

PHP:
SELECT name
FROM `characters`
WHERE gm > 0

You can obviously change it around to suit your needs

PHP:
SELECT name
FROM `characters`
WHERE gm = 1

That would make it so it selects all characters with the GM Level of 1. (Change characters to accounts if you want.)

PHP:
SELECT `level`, `name`, `str`, `dex`, `luk`, `int`
FROM `characters`
WHERE level = 200

This would make it find all the level 200's along with the stats of them.

PHP:
SELECT `name`, `banned`
FROM `accounts`
WHERE banned = 1
Lists the banned people from the server.

If you need the codes for listing any others, just post here and i'll try an reply asap.
PS: Instead of making it three lined, you can merge it to one line (Ex: SELECT name FROM `characters` WHERE gm > 0)
 
Last edited:
Back
Top