且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

VB.net通过PHP Web服务连接到在线MySQL。

更新时间:2022-11-29 23:16:32

您可以尝试将数据发布到php app,有php解码你发布的内容并执行mysql查询并可选择返回一些输出。 VB.net将使用http(s)下载php文件。



你可以从php中的请求中获取POST数据:

You could maybe try posting data to the php app, the having the php decode what you posted and executing the mysql query and optionally returning some output. The VB.net would just "download" the php file using http(s).

You can get the POST data from requests in php with:


post =
post =


_POST [' var_name'];
// 对发布数据执行某些操作
print 任何输出文本,包括这个,都会被发回;
print 到您的vb.net应用。;
_POST['var_name']; //do something with the post data print "Any output text, including this, is what gets sent back"; print " to your vb.net app.";





如果有帮助请告诉我!



Let me know if this helps!