On Wed, Sep 22, 2004 at 02:58:39PM -0400, Jeff <[EMAIL PROTECTED]> wrote:
>
> On Sep 22, 2004, at 2:37 PM, David Good wrote:
> >
> > $db = "foo";
> > $dbcc_sql = "dbcc checkdb($db)";
> > my $sth = $dbh->prepare($dbcc_sql);
> > if ($sth->execute($dbcc_sql)){
>
> You passed a parameter to execute and it doesn't need it.
> You only need to pass values to execute when you are using place
> holders you didn't bind with ->bind_param.
D'oh!! I think I used too much cut-and-paste with the old $dbh->do()
version of the script.
--
David Good [EMAIL PROTECTED]
This space intentionally left blank.