andrew has asked for the wisdom of the Perl Monks concerning the following question:
$key = param('key'); $des = param('des'); $dbh->do("UPDATE settings SET key='$key', des='$des'") or die $dbh- +>errstr;
Error: You have an error in your SQL syntax near 'key='sss', des='sss' WHERE +1' at line 1 at admin.cgi line 177.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: MYSQL $dbh->do
by dws (Chancellor) on Sep 28, 2002 at 20:20 UTC | |
|
Re: MYSQL $dbh->do
by Juerd (Abbot) on Sep 28, 2002 at 20:23 UTC | |
by andrew (Acolyte) on Sep 28, 2002 at 20:41 UTC | |
by Juerd (Abbot) on Sep 28, 2002 at 20:49 UTC | |
by andrew (Acolyte) on Sep 28, 2002 at 20:54 UTC | |
|
Re: MYSQL $dbh->do
by andrew (Acolyte) on Sep 28, 2002 at 20:40 UTC | |
by JupiterCrash (Monk) on Sep 29, 2002 at 18:17 UTC |