This script is running really slowly when I try it in google chrome with the script URL , and I would like to know why:
<?php
    include 'config.php';
    $conn = mysqli_connect($servername, $username, $password, $dbname);
    $playerEmail = $_REQUEST["playerEmail"];
    $sql = "SELECT *
        FROM players
        WHERE EMAIL = '$playerEmail'";
    $res = mysqli_query($conn,$sql);
    $result = array();
    while($row = mysqli_fetch_array($res)){
        array_push($result,
        array('EMAIL'=>$row[0],
              'DATEOFSIGNUP'=>$row[2],
              'USERNAME'=>$row[3],
              'GENDER'=>$row[4],
              'JOB'=>$row[5],
              'LVL'=>$row[6],
              'HP_NOW'=>$row[7],
              'HP_MAX'=>$row[8],
              'MANA_NOW'=>$row[9],
              'MANA_MAX'=>$row[10],
              'STR'=>$row[11],
              'SPD'=>$row[12],
              'INTEL'=>$row[13],
              'XP_NOW'=>$row[14],
              'XP_NEEDED'=>$row[15],
              'GOLDS'=>$row[16],
              'NUMBERSOFITEMS'=>$row[17],
              'LOCATION_X'=>$row[18],
              'LOCATION_Y'=>$row[19]
              ));
    }
    echo json_encode(array("result"=>$result));
    mysqli_close($conn);
?>
All my others scripts were made using $_REQUEST, so I dont believe it's the cause. Anything you can think off, feel free to share here.
Thanks alot folks !
 
     
    