Home  >  Article  >  Backend Development  >  ms sql-php查询mssql表行数,为什么没输出??

ms sql-php查询mssql表行数,为什么没输出??

WBOY
WBOYOriginal
2016-06-02 11:28:441033browse

phpms sqlsql

$ms_host="localhost";
$ms_user="sa";
$ms_pass="sa";
$ms_data="his";
$ms_conn=mssql_connect($ms_host,$ms_user,$ms_pass);
mssql_select_db($ms_data,$ms_conn);

<code>$sql ="select * from zsb_customer ";</code>

echo mssql_num_rows(mssql_query($sql));

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn