Guest User

Untitled

a guest
Aug 17th, 2018
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  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. ?>
Add Comment
Please, Sign In to add comment