in reply to Rows fail to delete without error
If there is a reason to use bind_param vs. this syntax someone please enlighten me, this is the way I have been doing it and it works for me, but TIMTOWTDI What are you doing at the bottom with @success_message? You assign a single value to it, but then does it get magically used by success_message? I say magicly because that is dangerous. You want to pass as much information into a sub as new each time. I would rewrite this as:$sth = $dbh->prepare(qq!DELETE FROM $holding_table WHERE year=? AND month=? AND day=? AND time_start=? AND time_end=? AND title=?"); $sth->execute(@key);
or at the very least:sucess_message( h2({-align=>'center'},"Database(s) updated. Thanks!") +);
Where is $sth getting scoped at?my @success_message = h2({-align=>'center'},"Database(s) updated. Than +ks!"); sucess_message( @success_message );
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Rows fail to delete without error
by jerrygarciuh (Curate) on Apr 08, 2002 at 21:42 UTC | |
by trs80 (Priest) on Apr 08, 2002 at 21:53 UTC |