What if the $fname value contains a quote? Or some other "special" character you haven't thought of yet?
Use placeholders (or use $dbh->quote if placeholders are underpowered).
see this section of the DBI docs for starters
In reply to Re: DBI/MySQL system cutting off UPDATE values.
by Joost
in thread DBI/MySQL system cutting off UPDATE values.
by punch_card_don
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |