Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/mysql/64.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/database/8.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何从WindowsPhone8应用程序连接到远程MySQL数据库?_Mysql_Database_Windows Phone 8_Remote Access - Fatal编程技术网

如何从WindowsPhone8应用程序连接到远程MySQL数据库?

如何从WindowsPhone8应用程序连接到远程MySQL数据库?,mysql,database,windows-phone-8,remote-access,Mysql,Database,Windows Phone 8,Remote Access,我正在为WindowsPhone8开发应用程序,我需要从远程MySQL数据库获取用户数据。web应用程序也使用此数据库 这个问题的解决方案是什么?我可以在哪里阅读有关使用windows phone 8远程数据存储的信息?您可以使用windows phone的restsharp客户端。还提供了完整的文档和nuget安装。这是链接您可以使用windows phone的restsharp客户端。还提供了完整的文档和nuget安装。下面是链接一种更好、更简单的方法是在服务器端代码(如php)中执行所有d

我正在为WindowsPhone8开发应用程序,我需要从远程MySQL数据库获取用户数据。web应用程序也使用此数据库


这个问题的解决方案是什么?我可以在哪里阅读有关使用windows phone 8远程数据存储的信息?

您可以使用windows phone的restsharp客户端。还提供了完整的文档和nuget安装。这是链接

您可以使用windows phone的restsharp客户端。还提供了完整的文档和nuget安装。下面是链接

一种更好、更简单的方法是在服务器端代码(如php)中执行所有db操作,并且可以使用查询字符串和反向的by echo语句将信息传递到php文件

var webclient = new WebClient();
webclient.OpenReadAsync(new Uri("http://website.com/filename.php?name=" + myname.Text );
webclient.OpenReadCompleted += new OpenReadCompletedEventHandler(handler);

private void opener(object sender, OpenReadCompletedEventArgs e)
{
    //  throw new NotImplementedException();
    using (var reader = new StreamReader(e.Result))
    {
            string response = reader.ReadLine();

            MessageBox.Show(response);
    }
}

更好、更简单的方法是在服务器端代码(如php)中执行所有db操作,并且可以使用查询字符串和reverse by echo语句将信息传递到php文件

var webclient = new WebClient();
webclient.OpenReadAsync(new Uri("http://website.com/filename.php?name=" + myname.Text );
webclient.OpenReadCompleted += new OpenReadCompletedEventHandler(handler);

private void opener(object sender, OpenReadCompletedEventArgs e)
{
    //  throw new NotImplementedException();
    using (var reader = new StreamReader(e.Result))
    {
            string response = reader.ReadLine();

            MessageBox.Show(response);
    }
}