"be consistent" | |
PerlMonks |
Mysql syntax error from DBIby chriso (Sexton) |
on Nov 10, 2003 at 18:11 UTC ( [id://305925]=perlquestion: print w/replies, xml ) | Need Help?? |
chriso has asked for the wisdom of the Perl Monks concerning the following question:
I'm getting a syntax error for the following perl/mysql statement. Can you tell me what is wrong and how to fix it?
Here is the error message: DBD::mysql::st execute failed: You have an error in your SQL syntax near 'cleaner and unit=cn and qty=15 and cost=1.35 WHERE id = 19' at line 1 Here is the code
pname should be "drain cleaner", unit should be "cn", qty should be 15, and cost should be 1.35. Thanks. Chris. Never mind, I figured it out.
Back to
Seekers of Perl Wisdom
|
|