title: connecting mssql database with php (serverside)
body: <p>I have space on net4india.com with ms sql. 
  my test database is uploaded on it. our team is able to access it from aspx pages. but I'm not able to access it with php code.</p>
  
  <pre><code>&lt;?php
  
  echo "hello";
  
  $myServer = "myserver";
  $myUser = "imuser";
  $myPass = "mypass";
  $myDB = "testdb";
  
  //connection to the database
  $dbhandle = mssql_connect($myServer, $myUser, $myPass);
  echo "hello2";
  if (!$dbhandle)
  die("Couldn't connect to SQL Server on $myServer");
  
  
  //select a database to work withn
  $selected = mssql_select_db($myDB, $dbhandle)
  or die("Couldn't open database $myDB");
  
  
  //declare the SQL statement that will query the database
  $query = "SELECT * FROM testtable WHERE REGNO='0705071'";
  ?&gt;
  </code></pre>
  
  <p>It prints <strong>hello</strong> only.doesnt even prints <strong>hello2</strong>. It doesnt prints any error.</p>