Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Re: Rows fail to delete without errorby trs80 (Priest) |
on Apr 08, 2002 at 21:34 UTC ( [id://157570]=note: print w/replies, xml ) | Need Help?? |
I looked back at some of your past posts before I made this post. I am not sure what your immediate problem is, but you have some serious scoping issues in your scripts. I am also not sure why you are so verbose with your execute statements. The delete could be rewritten as:
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: or at the very least: Where is $sth getting scoped at? What is your DBI connect string? (does it have RaiseError?) Please don't misread my curiosity as critizism. UPDATE: This was funny, Ovid and I were talking about the similarity of another post with his last meditation and now I have posted what sounds similar to Ovid's post on this node. Very odd day.
In Section
Seekers of Perl Wisdom
|
|