in reply to Re: DBI Problem
in thread DBI Problem
As I said there are two calls to executequery in the same sub routine. The first returns the correct response while the second fails with the error posted. open connection returns the dbi/dsn correctly
Open Connection-returning database handle: 'DBI::db=HASH(0x1e02880)' d +sn: 'dbi:mysql:database=jalamior_assoc_mgr;host=localhost' at /home/j +alamior/www/httpsdocs/cgi-bin/lib/perl/manageusers.pm line 152.
Makes no sense to me why one should be Ok and the other fail. That is why I am here. Seems like a self contained problem to me.
sub ExecuteQuery { my ($SQL) = @_; my $sth = $dbh->prepare($SQL) || ErrorMessage($SQL); $sth->execute() || ErrorMessage($SQL); return $sth; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: DBI Problem
by thanos1983 (Parson) on Sep 29, 2017 at 08:04 UTC | |
by tultalk (Monk) on Sep 29, 2017 at 11:30 UTC | |
by thanos1983 (Parson) on Sep 29, 2017 at 12:05 UTC | |
by tultalk (Monk) on Sep 29, 2017 at 12:48 UTC | |
by thanos1983 (Parson) on Sep 29, 2017 at 15:01 UTC | |
|
Re^3: DBI Problem
by huck (Prior) on Sep 29, 2017 at 02:13 UTC | |
by tultalk (Monk) on Sep 29, 2017 at 03:42 UTC | |
|
Re^3: DBI Problem
by poj (Abbot) on Sep 29, 2017 at 10:30 UTC | |
by tultalk (Monk) on Sep 29, 2017 at 10:45 UTC | |
by poj (Abbot) on Sep 29, 2017 at 19:57 UTC |