• 0

Checking parameters


Question

Hello, I'm building some forms in PHP and I'm deploying them in Server #1, the MSSQL DB is in Server #2, I've written this code to access the DB

 

<?PHP
$username ="yyy";
$password = "xxx";
$database = "fff";
$server = "111.222.333.444,1433";

$connection = mssql_connect($server, $username, $password);
echo "Connected!3";
if (!$connection) {  
    die('Not connected : ' . mssql_get_last_message());
}
echo "Connected!5";
if ($connection) {  
    echo "Connected!1";
}
echo "Connected!2";
?>

 

The result is a blank page, after the $connection, nothing shows, not even the echos.

 

The Administrator told me that the info that he provided, "thinks" it's correct.

 

How can I check if the info that he provided is correct?

 

I've access to both Servers.

 

The problem is really in the info provided or it's another problem?

Link to comment
https://www.neowin.net/forum/topic/1362868-checking-parameters/
Share on other sites

2 answers to this question

Recommended Posts

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Posts

  • Recent Achievements

    • Week One Done
      mywakehealth earned a badge
      Week One Done
    • Dedicated
      jbatch earned a badge
      Dedicated
    • Week One Done
      Leonard grant earned a badge
      Week One Done
    • One Month Later
      portacnb1 earned a badge
      One Month Later
    • Week One Done
      portacnb1 earned a badge
      Week One Done
  • Popular Contributors

    1. 1
      +primortal
      287
    2. 2
      snowy owl
      158
    3. 3
      +FloatingFatMan
      153
    4. 4
      ATLien_0
      143
    5. 5
      Xenon
      130
  • Tell a friend

    Love Neowin? Tell a friend!