阅读背景:

使用PDO从PHP调用存储过程到使用输入参数的MSSQL服务器

来源:互联网 

This does not work:

这并不工作:

  $dbh = new PDO("dblib:host=xxxx;dbname=xxx", "xxxxx", "xxxxx");

  $sth = $dbh->prepare("{exec wcweb_UserInfo(?)}");
  $sth->bindParam(1, $name);
  $sth->execute();

  while($result = $sth->fetch(PDO::FETCH_ASSOC)) {
    var_dump($result);
  }
  $dbh = new PDO



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: