fix vars names

This commit is contained in:
Gnieark 2015-12-04 16:26:05 +01:00
parent a04450f951
commit fcf192c7b3

View File

@ -22,8 +22,8 @@ switch($_POST['act']){
$rs=mysqli_query($lnMysql, $rs=mysqli_query($lnMysql,
"SELECT 1 "SELECT 1
FROM bots FROM bots
WHERE name='".mysqli_real_escape_string($lnMysql,htmlentities($_POST['botname']))."' WHERE name='".mysqli_real_escape_string($lnMysql,htmlentities($_POST['botName']))."'
AND game='".mysqli_real_escape_string($lnMysql,$_POST['game'])."';"); AND game='".mysqli_real_escape_string($lnMysql,$_POST['botGame'])."';");
if(mysqli_num_rows($rs) > 0){ if(mysqli_num_rows($rs) > 0){
$alerts.="Un bot existant pour ce je porte le même nom\n"; $alerts.="Un bot existant pour ce je porte le même nom\n";
} }