Home  >  Article  >  Backend Development  >  php 操作mssql的问题

php 操作mssql的问题

WBOY
WBOYOriginal
2016-06-23 14:10:42742browse



注册用户的时候出现如上错误,请教

注册语句如下
 $result = $this->_db->fetchRow ("EXEC dbo.GSP_GP_RegisterAccounts ?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?",array($username, md5($password), md5($Insurepassword), $NickName, $Gender, $IdCard, $RealName, $MobilePhone, $intro, $FaceID, $ProtectQuestion1, $ProtectAnswer1, $ProtectQuestion2, $ProtectAnswer2, util::getip(), md5(util::getip())));


回复讨论(解决方案)

外键冲突了,可能是因为两边的字符集不同

两边指的是什么啊

都是从外网复制下来的代码,数据库也一样的 ,外网可以正常运行的

打开php错误提示看看

错误就是这个啊

乱码?

好像是字符集的问题。

是数据库没有复制好的问题,索引,主键啥的估计没弄好

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