Heim >Backend-Entwicklung >PHP-Tutorial > php 调用mssql 存储过程不能执行有关问题
php 调用mssql 存储过程不能执行问题
存储过程不能执行还是什么情况,反正不能出现结果
require("../inc/hbmconn.php");<br /> <br /> //传入vip 姓名<br /> $name=iconv("utf-8","gb2312",$_REQUEST['name']);<br /> $startTime="2012-04-01";<br /> $endTime="2012-04-03";<br /> $procedure = mssql_init("procGetVIPConsumeDetail",$conn);<br /> mssql_bind($procedure,"@vipConsumerFilter",$name, SQLVARCHAR); <br /> mssql_bind($procedure,"@startDate",$startTime, SQLDATETIME); <br /> mssql_bind($procedure,"@endDate",$endTime, SQLDATETIME); <br /> $resource = mssql_execute($procedure);<br /> mssql_free_statement($procedure);