prepare($query); // $stmt->bind_param("s", $maestro_name); $stmt->execute(); $stmt->bind_result($maestroID, $maestroTestID); // while($stmt->fetch()) { // ; // } $stmt->fetch(); $stmt->close(); $result["MaestroID"] = $maestroID; $result["MaestroTestID"] = $maestroTestID; return $result; } function get_maestro_test_player_info($maestro_id) { global $db_conn; $query = " SELECT PlayerID, Name, AccountType FROM moty_player WHERE MaestroID = ? "; $stmt = $db_conn->prepare($query); $stmt->bind_param("i", $maestro_id); $stmt->execute(); $stmt->bind_result($playerID, $name, $accountType); // while($stmt->fetch()) { // ; // } $stmt->fetch(); $stmt->close(); $result["PlayerID"] = $playerID; $result["Name"] = $name; $result["AccountType"] = $accountType; return $result; } ?>