?? function.php-mssql_connect.htm
字號:
<html>
<head>
<meta content="text/html; charset=gb2312" http-equiv=Content-Type>
<title>函數:mssql_connect()</title>
<style type="text/css">
a {text-decoration: none;color:#6666ff;}
a:hover {color:#ff0000;}
</style>
</head>
<body bgcolor=ffffff leftmargin=0 topmargin=0 marginheight=0 marginwidth=0>
<p>
<div align=center><table border=0 width=70%><tr>
<td valign=middle width=20><hr size=1 width=100%></td>
<td valign=middle nowrap><font color=e06060 size=+2><b>函數:mssql_connect()</b></font></td>
<td valign=middle width=100%><hr size=1 width=100%></td>
</tr></table></div><p>
<div align=center><table border=0 width=70%><tr><td>
<div align=right><a href="group.php-32.htm" alt="group.php?32">SQL Server 數據庫函數庫</a></div><br><h1><font color=0000bb>mssql_connect</font></h1><p>
連上數據庫。<p>
<font color=ff8000>語法:</font> <b>int mssql_connect(string [servername], string [username], string [password]);</b><p>
<font color=ff8000>返回值:</font> 整數<p>
<font color=ff8000>函數種類:</font> 數據庫功能<p>
<p><table border=0 cellspacing=0 cellpadding=0 width=100% height=1><tr><td height=1 bgcolor=c0c0c0><table border=0 cellspacing=0 cellpadding=0><tr><td></td></tr></table></td></tr>
<tr><td align=left><font color=ff8000>內容說明</font></td></tr></table><p>本函數用來打開與 MS SQL Server 數據庫的連接。參數 servername 為欲連上的數據庫服務器名稱。參數 username 及 password 可省略,分別為連接使用的帳號及密碼。使用本函數需注意早點關閉數據庫,以減少系統的負擔。連接成功則返回數據庫的連接代號,失敗返回 false 值。<p>
<p><table border=0 cellspacing=0 cellpadding=0 width=100% height=1><tr><td height=1 bgcolor=c0c0c0><table border=0 cellspacing=0 cellpadding=0><tr><td></td></tr></table></td></tr>
<tr><td align=left><font color=ff8000>參考</font></td></tr></table><p><a href="function.php-mssql_close.htm" alt="function.php?mssql_close">mssql_close()</a> <a href="function.php-mssql_pconnect.htm" alt="function.php?mssql_pconnect">mssql_pconnect()</a> <p><hr size=1><br>如果你對此手冊有任何問題,請到下面網址提問: <a href="www.web745.com">WEB開發知識庫</a> (<a href="http://www.web745.com">www.web745.com</a>)<p>
</td></tr></table></div>
<p>
<div align=center>
<table border=0><tr><td>[ <a href="function.php-mssql_close.htm" alt="function.php?mssql_close">上一頁</a> </td> <td> <a href="function.php-mssql_data_seek.htm" alt="function.php?mssql_data_seek">下一頁</a> ]</td></tr></table>
</div><p><br><br>
</body>
</html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -