Location: PHPKode > scripts > TMSSQLRdbms > tmssqlrdbms/TMSSQLRdbms.php
<HTML>
<HEAD>
<TITLE>Customer Catalog</TITLE>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-7">
</HEAD>
<body>
<?php 

###########################################################
# (c) ITS s.a. by Kostas Aitsidis                         #
# Thessaloniki Greece					  #
# email : hide@address.com				  #
#							  #
# class TMSSQLRdbms (host,user,password)                  #
#                                                         #
# TMSSQLRdbms : Connect to MS SQL Server abstract         #
###########################################################

class TMSSQLRdbms{ 

	var $hostname;
	var $username;
	var $password;
	var $LinkID;
	
	function TMSSQLRdbms($host="localhost",$user="sa",$pass="")  {
		$this->hostname =$host;
		$this->username =$user;
		$this->password=$pass;
   }
    function  set_host($host="localhost") {
		$this->hostname =$host;
	}
    function  set_user($user="sa") {
		$this->username =$user;
	}
    function  set_pass($pass="pass") {
		$this->password=$pass;
	}
	function rdbms_connect() {
		$this->LinkID = 	mssql_pconnect($this->hostname,$this->username,$this->password) or DIE("DATABASE SERVER FAILED TO RESPOND.");
	}	
	function  rdbms_disconnect() {
		mssql_close($this->LinkID);
	}
}

?>
 </body>
 </html>
Return current item: TMSSQLRdbms