code_junkie

Having Issues Connecting to Microsoft SQL Server Express (2008) from PHP

Nov 14th, 2011
136
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. <?php
  2. include('adodb5/adodb.inc.php');
  3. $db =& ADONewConnection('odbc_mssql');
  4. $db->debug = true;
  5. $dsn = "Driver={SQL Server};Server=ozmodiar;Database=bggs;";
  6. $db->Connect($dsn,'user','password');
  7. $rs = $db->Execute('select * from admin_users');
  8. print "<pre>";
  9. print_r($rs->GetRows());
  10. print "</pre>";
  11. ?>
Add Comment
Please, Sign In to add comment