This does not work:
$dbh = new PDO(\"dblib:host=xxxx;dbname=xxx\", \"xxxxx\", \"xxxxx\");
$sth = $dbh->prepare(\"{exec wcweb_UserInfo(?)}\");
$sth-
For some reason this works:
$sth = $dbh->prepare("exec wcweb_UserInfo ?");
$sth->bindParam(1, $name);
$sth->execute();
while($result = $sth->fetch(PDO::FETCH_ASSOC)) {
var_dump($result);
}
I might be able to live with this. Anyone know why the other methods do not work? Is it a difference in the libraries?