Location: PHPKode > scripts > My Db > my-db/mssql.php
<?php
/* interface with Microsoft SQL server
 */
/********************************************************************/
function connect(&$server,&$user,&$password){
    return mssql_connect($server,$user,$password);
}
/********************************************************************/
function select_db(&$db, &$conn){
	mssql_select_db($db, &$conn);
}
/********************************************************************/
function query(&$query, &$conn){
    $result = mssql_query (&$query, &$conn) or die("La consulta fall&oacute; en el servidor Microsoft SQL Server ";
    return $result;
}
/********************************************************************/
function load_data(&$result){
	if(mssql_num_rows($result)> 0){
		while ($fila = mssql_fetch_array($result)) {
			$_array[] = $fila;
		}
    }
	else{
	    $_array = false;
	}
	return $_array;
}
/********************************************************************/
function insert_id(&$conn){
//No hay equivalente en MS SQL Server
}
/********************************************************************/
function free_result(&$result){
    mssql_free_result($result);
}
/********************************************************************/
function close(&$conn){
    myssl_close($conn);
}
/********************************************************************/
?>
Return current item: My Db