Advertisement
Guest User

db.config.php

a guest
Jun 13th, 2017
166
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. <?php
  2. $dbHost = 'localhost';
  3. $dbUser = 'test';
  4. $dbPass = 'test123';
  5. $GLOBALS['dbConn'] = @odbc_connect("Driver={SQL Server};Server={$GLOBALS['dbHost']};",$GLOBALS['dbUser'],$GLOBALS['dbPass']) or die('Database Connection Error!');
  6. if(!$GLOBALS['dbConn']){
  7. exit("Connection failed:".odbc_errormsg());
  8. }
  9. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement