in reply to MySQL Error

You're prepare()ing your statement twice before executing it. That's your problem.

You really should look into placeholders, too. If you use them, they'll allow you to avoid that annoying single-quote/double-quote breakdancing you're doing in your first prepare statement. They take care of all quote escaping, too, so you'll never have to worry about quotes breaking queries again.

-Any sufficiently advanced technology is
indistinguishable from doubletalk.

Replies are listed 'Best First'.
Re: Re: MySQL Error
by Anonymous Monk on Nov 20, 2001 at 08:37 UTC
    DOH!! 3AM coding perl...never a good idea :)
    A reply falls below the community's threshold of quality. You may see it by logging in.