Hello everyone.

The Mixed Reality Forums here are no longer being used or maintained.

There are a few other places we would like to direct you to for support, both from Microsoft and from the community.

The first way we want to connect with you is our mixed reality developer program, which you can sign up for at https://aka.ms/IWantMR.

For technical questions, please use Stack Overflow, and tag your questions using either hololens or windows-mixed-reality.

If you want to join in discussions, please do so in the HoloDevelopers Slack, which you can join by going to https://aka.ms/holodevelopers, or in our Microsoft Tech Communities forums at https://techcommunity.microsoft.com/t5/mixed-reality/ct-p/MicrosoftMixedReality.

And always feel free to hit us up on Twitter @MxdRealityDev.
Options

Read SQL data on HoloLens

Hello,

I have established connection from HoloLens to PhpMyAdmin page. I am able to insert data to the table from my HoloLens successfully. Unfortunately, I am not able to retrieve the data onto the HoloLens. However, it is working well on Unity3D but not on HoloLens. Here is my code:

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
using System;

public class extractLocationDB : MonoBehaviour {

string URL = "http://192.168.60.115/holodb/extract_loc.php";
public string[] userdata;
public Text txt;

// Use this for initialization
void Start () {


}

// Update is called once per frame
void Update () {
    StartCoroutine(ExtractValues());
}

IEnumerator ExtractValues()
{
    WWW users = new WWW (URL);
    yield return users;
    string userdatastring = users.text;

    userdata = userdatastring.Split(';');
    txt.text = userdata[0];
}

}

Sign In or Register to comment.