且构网

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

使用PHP和C#与MySQL交互

更新时间:2022-02-08 23:18:32

_GET [ a] +(int)
_GET["a"] + (int)


_GET [ b]; ?>
_GET["b"]; ?>



C#代码:


C# Code:

using (var client = new WebClient())
          {
              var a = 50;
              var b = 100;
              var result = client.DownloadString(string.Format("http://antivurusdownload.co.uk/test/csharptest.php?a={0}&b={1}", a, b));
              Console.WriteLine(result);
              Console.ReadKey();
          }





现在我尝试使用此代码将此应用于MySQL,但没有成功



PHP代码:



Now I tried to apply this to MySQL using this code to no success

PHP Code:

<?php


username = testing123;
username="testing123";