首页 新闻 会员 周边

PDO调用mysql存储过程,获取out参数值问题

0
悬赏园豆:10 [已关闭问题] 关闭于 2012-09-08 07:59
<?php
/* Call a stored procedure with an INOUT parameter */
$colour 'red';
$sth $dbh->prepare('CALL puree_fruit(?)');
$sth->bindParam(1$colourPDO::PARAM_STR|PDO::PARAM_INPUT_OUTPUT12);
$sth->execute();
print(
"After pureeing fruit, the colour is: $colour");
?>
上面这个是官方的demo,可是我怎么也获取不到out回来的colour值.
Athrun的主页 Athrun | 初学一级 | 园豆:178
提问于:2012-04-19 11:02
< >
分享
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册