Update - What dws says makes sense. You can use backticks to still be able to use those names as column names (in all other SQL it's double quotes, but they work like single quotes (creating string values) in MySQL). I added them to my example of good placeholder usage. Best is probably to rename your column.
(Untested)
$dbh->do('UPDATE settings SET `key` = ?, des = ?', undef, $key, $des) +or die $dbh->errstr;
- Yes, I reinvent wheels.
- Spam: Visit eurotraQ.
In reply to Re: MYSQL $dbh->do
by Juerd
in thread MYSQL $dbh->do
by andrew
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |