Home > php教程 > php手册 > body text

关于PHP连接mssql的小问题

WBOY
Release: 2016-06-06 19:46:12
Original
1368 people have browsed it

这是一部分截图,下面是另一部分! 这是我想要的!就出现一个! 41行的代码是这样的 ?php $fields=$rs-fields(name);echo $fields-value;? 这是数据库 连接 ?php $conn=new com("adodb.connection"); $connstr="provider=sqloledb;data source=DLUT-PC\SQLEX

关于PHP连接mssql的小问题

这是一部分截图,下面是另一部分!

 

关于PHP连接mssql的小问题

这是我想要的!就出现一个!

关于PHP连接mssql的小问题

 

41行的代码是这样的fields(name);echo $fields->value;?>

这是数据库连接

$conn=new com("adodb.connection");
$connstr="provider=sqloledb;data source=DLUT-PC\SQLEXPRESS;uid=zhouhao;pwd=950288;database=db_database07";
$conn->open($connstr);
?>

谢谢各位大侠的帮助~

source:php.cn
Statement of this Website
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
Popular Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!