daily pastebin goal
28%
SHARE
TWEET

Untitled

a guest Aug 17th, 2018 62 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Two odbc_connect calls using the same credentials
  2. <?php
  3.     $user     = "root";
  4.     $password = "root";
  5.     $server   = "localhost";
  6.     $db       = "dbo";
  7.  
  8.     $dsn      = "SERVER=$server; DRIVER=SQL Server; DATABASE=$db";
  9.  
  10.     $connection_1 = odbc_connect($dsn, $user, $password);
  11.     //Do some stuff
  12.     $connection_2 = odbc_connect($dsn, $user, $password);
  13.     //Do some stuff
  14. ?>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top