Guest User

Untitled

a guest
Jul 16th, 2018
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. $dsn = 'Mindwise';
  2. $username = 'user';
  3. $password = 'password';
  4.  
  5.  
  6. $dbh = mssql_connect($dsn,$username,$password);
  7.  
  8. if (!$dbh) {
  9. echo "Could not connect to database.<br />\n";
  10. }
  11.  
  12.  
  13. This always says it can't connect to the database... what am I doing wrong? Mindwise is the ODBC database connection... I've also tried the server address instead of the ODBC entry.
Add Comment
Please, Sign In to add comment