should do the trick.my $sth =$dbh ->prepare("UPDATE products set pname=? and unit=? and qty=? and cost=? WHERE id = ?");
No. It shouldn't.
The SQL syntax is wrong (see meetraz's answer.
In reply to Re: Re: Mysql syntax error
by dbwiz
in thread Mysql syntax error from DBI
by chriso
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |