Home  >  Article  >  Backend Development  >  如何PHP调用不了存储过程呢

如何PHP调用不了存储过程呢

WBOY
WBOYOriginal
2016-06-13 13:42:26863browse

怎么PHP调用不了存储过程呢?
我的存储过程在Mysql-Front下测试通过;
用PHP代码调用也不报错,但是数据库就是没有增加纪录?
=============================================================================

$sql = "CALL db.procInsertUserlist('abcdefg','123456')";
printf($sql);
$result = mysql_query($sql);


=============================================================================
printf打印的代码在Mysql-Front下测试可以写入数据;

数据库版本:mysql-5.0.22
php版本:php-5.2.9-2-win32

------解决方案--------------------
php中的mysql每次执行完毕会自动关闭的,你试一试pconnect方式
------解决方案--------------------
列'i_user_nichenname“第1行数据太长
------解决方案--------------------
你可以这样link=mysql_connect($host,$name,$pass) or die ("连接超时");
mysql_select_db($table) or die("没该数据库:".$table);

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