如何从WindowsPhone8应用程序连接到远程MySQL数据库?
我正在为WindowsPhone8开发应用程序,我需要从远程MySQL数据库获取用户数据。web应用程序也使用此数据库如何从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
这个问题的解决方案是什么?我可以在哪里阅读有关使用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);
}
}