cluka has asked for the wisdom of the Perl Monks concerning the following question:
This generates a syntax error every time. I'm guessing that quotes, newlines, etc. in the <TEXTAREA> are causing the problem, but I've scoured all the docs, super search data and categorized questions and can't find the answer.my $c = CGI->new(); my $node_id = $c->Vars()->{nodeid} my $text = $c->Vars()->{textdata}; my $sth = $dbh->prepare("INSERT INTO t2d SET textfield=? WHERE node_id +=?"); $sth->execute($text,$sth);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: On Handling Text (Blob) Column Types in MySQL/CGI
by dws (Chancellor) on Apr 03, 2003 at 22:56 UTC | |
|
Re: On Handling Text (Blob) Column Types in MySQL/CGI
by jasonk (Parson) on Apr 03, 2003 at 22:28 UTC | |
by cluka (Sexton) on Apr 03, 2003 at 22:45 UTC | |
by jasonk (Parson) on Apr 03, 2003 at 22:57 UTC | |
|
Re: On Handling Text (Blob) Column Types in MySQL/CGI
by benn (Vicar) on Apr 04, 2003 at 09:22 UTC | |
by hardburn (Abbot) on Apr 04, 2003 at 14:56 UTC |