i want ask, is there any How to short my script
First Check, if get uid
, do Second and Third check
$result = mysqli_fetch_row(mysqli_query($con, "SELECT MAX(`uid`) FROM `pvpgn_bnet`"));
if($result) {
Do Second and First Check();
}
Second Check
$result = mysqli_fetch_row(mysqli_query($con, "SELECT * FROM `pvpgn_bnet` WHERE acct_email = '" . $email . "'"));
if($result) {
errorMsg();
}
Third Check
$result = mysqli_fetch_array(mysqli_query($con, "SELECT `uid` FROM `pvpgn_bnet` WHERE acct_username = '" . $username . "'"), MYSQLI_BOTH);
if($result) {
errorMsg();
}