Home > Backend Development > PHP Tutorial > PHP ADODB 数据库操作,该怎么解决

PHP ADODB 数据库操作,该怎么解决

WBOY
Release: 2016-06-13 12:08:48
Original
924 people have browsed it

PHP ADODB 数据库操作
最近在做一个项目,客户那边是MSSQL,但我这里的资源就只有MYSQL,所以选择了ADODB来操作。开发完MYSQL版无问题后把代码打包给客户(客户那边因为安全性问题,一切资源都不提供),测试结果通过往来邮件解决,发现Execute对于增删改不执行。
只贴出关键代码。因为时间紧急,不能去对方服务器测试,也访问不到页面,。有知道的大大能告知下吗?

<br />$db = ADONewConnection(“"mssqlnative"”);<br />$sql9 = "UPDATE table SET table_type=1 WHERE user_id=1";<br />$db->Execute($sql9);<br />
Copy after login

------解决思路----------------------
<br /><br />$db = ADONewConnection(“"mssqlnative"”);//双引号中文状态下的<br /><br />
Copy after login

------解决思路----------------------
不要开玩笑!你得先加载相应数据库的扩展,才能使用 adodb类库

adodb类库也用错误处理机制,你都不看他提供的错误信息的吗

Related labels:
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 Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template