title: Script push from C# to Php not working on application
body: <p>Okay I am using Unity To create my application and MSSQL for the database in between them both i have a PHP Exchange server.</p>
  
  <p>So basically I am having a problem with this piece of code</p>
  
  <pre><code>using UnityEngine;
  using System.Collections;
  
  public class NewSession : MonoBehaviour {
      string userLoginFile = "http://"ServerIP"/UnitySQL/NewSession.php?";
      public UnityEngine.UI.Text NewSess;     
  
      string userid = "";
      string session = "";
  
      void OnGUI()
      {
          session = NewSess.text;
          userid = PlayerPrefs.GetString ("UserId");
      }
  
  
  
      public void Insert()
      {
          if (session == "") {
              StartCoroutine (LoginUser (userid));
          } else {
              print("DAMNSON");
          }
      }
  
  
  
  
      IEnumerator LoginUser(string user)
      {
  
          WWW login = new WWW (userLoginFile + "UserId=" + user);
          print (userLoginFile + "UserId=" + user);
          yield return login;
          if (login.error == null)
          {
  
              string[] credentials = login.text.Split('/');
  
              foreach(string str in credentials)
              {
                  string[] creds = str.Split ('=');
  
                  for(int i=0; i &lt; creds.Length; i++)
                  {
                      print ("winner");
                  }
  
  
              }
          }
  
      }
  }
  </code></pre>
  
  <p>Now I don't know why its having this problem because it works fine when i use localhost and have the php exchange on my server i can clearly see the scripts print is correct because if i copy and paste that into the address header it does what its supposed to no problem.
  Here is the PHP Script</p>
  
  <pre><code>&lt;?php 
      $userid = $_REQUEST['UserId'];
  
      $user = 'user';
      $pass = 'Pass';
      $server = 'IP';
      $database = 'MyTable';
  
  // No changes needed from now on
      $connection_string = "DRIVER={SQL Server};SERVER=$server;DATABASE=$database";
      $conn = odbc_connect($connection_string,$user,$pass);
      /*$q = "DECLARE @return_value int
  
  EXEC    @return_value = [dbo].[InsertAnswersCheck]
          @varQuestionOptionId = '$QOI',
          @varUser = '$userid'
  SELECT  'Return Value' = @return_value";*/
      $q = "INSERT INTO usersession (UserId) VALUES ($userid)";
      $result = odbc_exec($conn,$q);
      $num_rows = odbc_num_rows($result);
  
      if($num_rows &gt; 0)
      {
  
      } else {
  
  }
  ?&gt;
  </code></pre>
  
  <p>It's been a problem for sometime but i cant figure out what is wrong. If anyone can help that would be fantastic. </p>
  
  <p>Please Note It works with the same script on my localhost if set it will require the user to login twice. But when i do it on the server script it will just stick you in a loop until you copy and paste the print code.</p>