Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?
- class HDClass {
- // MS SQL Connection
- var $myServer = "volans";
- var $myUser = "weblinux";
- var $myPass = 'm#g$N';
- var $myDB = "web_helpdesk";
- function __construct() {
- //connection to the database
- var $conn = mssql_connect($this->myServer, $this->myUser, $this->myPass);
- if (!$conn) { die("Couldn't connect to SQL Server on " . $this->myServer); }
- //select a database to work with
- var $db = mssql_select_db($this->myDB, $this->conn) or die("Couldn't open database ".$this->myDB);
- }
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement