Trying to Test if a user is banned

Hello i have a database running as well as a login/register php file hosted on a server

i have the problem when in game i try to send the username and password in the game to the php server
it then check’s it with the database and is working fine. however i need to find a way so that i dont just test weather the passwords match the username inputed but weather they are banned from the server i have a field in the database nammed banned and it’s values are either No or Yes

In your mysqli query select the banned field when selecting the user.

[php]if($row[‘banned’] == ‘Yes’){
// error process
}else{
// continue, do what needs to be done
}[/php]

Sponsor our Newsletter | Privacy Policy | Terms of Service