Home >php教程 >php手册 >PHP怎样调用MSSQL的存储过程_php基础

PHP怎样调用MSSQL的存储过程_php基础

WBOY
WBOYOriginal
2016-05-17 09:08:421073browse

//执行存储过程
for($i=0;$i{
$query="exec add_ddxx
@p_account=\"$session_account\",
@p_name=\"$name[$i]\",
@p_num=\"$num[$i]\",
@p_marketprice=\"$marketprice[$i]\",
@p_memberprice=\"$memberprice[$i]\",
@p_priceoftax=\"$notaxprice[$i]\",
@p_priceoflast=\"$lastprice[$i]\",
@p_sumprice=\"$price[$i]\",
@p_buy_date=\"$date\",
@p_flag=\"$p_flag\"";
$result=mssql_query($query,$connection) or die("存储过程执行错误,无法执行该SQL:$query");
   }

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