Home  >  Article  >  Backend Development  >  php-为什么这里没有输出,也没报错

php-为什么这里没有输出,也没报错

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

phpms sqlsql

<code><?php $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('his',$ms_conn); $sql ="select top 1 * from zsb_customer"; $res=mssql_query($sql,$ms_conn);while ($result=mssql_fetch_array($res)){  ?><ul>   <li><?php $result[ctm_name] ?></li>   <li><?php $result[ctm_code] ?></li>
</ul>
<?php };$mssql_close($ms_conn);?></code>
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