in reply to cannot retrieve value from select statement
Probably because your $dbh->do(..) statement is silently failing and you're not checking for success or failure.
When it fails, $sth2 gets assigned "undef" instead of a valid statement handle, and that's why you get an error when you call fetchrow_array() as a method of $sth2.
Dave
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: cannot retrieve value from select statement
by jZed (Prior) on Apr 05, 2005 at 05:48 UTC | |
by davido (Cardinal) on Apr 05, 2005 at 05:56 UTC |