title: How to establish a connection?
body: <p>I am new to DB2. </p>
  
  <pre><code>$database = 'test';
  $user = 'user1';
  $password = 'pswd1';
  $hostname = '10.250.10.10';
  $port = 556;
  
  
  $conn_string = "DRIVER={IBM DB2 ODBC DRIVER};DATABASE=$database;" .
    "HOSTNAME=$hostname;PORT=$port;PROTOCOL=TCPIP;UID=$user;PWD=$password;";
  $conn = db2_connect($conn_string, '', '');
  
  
  if ($conn) {
      echo "Connection succeeded.";
      db2_close($conn);
  }
  else {
  print($conn);
      echo "Connection failed.";
      die(db2_conn_errormsg());
  
  }
  </code></pre>
  
  <p>all the values are correct. But connection have been failed. Plz advise me. and How to check in the PHPINFO(). whether the DB2 have been installed successfully or not.</p>
  
  <p>I got the following error</p>
  
  <pre><code>Connection failed.[unixODBC][Driver Manager]Data source name not found, and no default driver specified SQLCODE=0
  </code></pre>