in reply to how to call stored procedure from ms sql
Can't call method "bind_param" on an undefined value
The important information here is that $sth is undefined when you try to call bind_param on it. That happens when prepare fails. If you check prepare for errors, you'll get some more useful information:
$sth = $dbh->prepare( $sql ) or die $dbh->errstr;
You can wrap that in an eval block if you want, too.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: how to call stored procedure from ms sql
by ephemeralz (Initiate) on Apr 25, 2005 at 23:36 UTC | |
by jhourcle (Prior) on Apr 25, 2005 at 23:53 UTC | |
by ephemeralz (Initiate) on Apr 26, 2005 at 00:36 UTC | |
by jhourcle (Prior) on Apr 26, 2005 at 01:42 UTC |