L
lievemario
I have made a perl script witch gets information out of a database,
transfers it into an xml-file file and than I parse this to a html
document using xsl.
The problem is dat the html doc needs a parameter which can be found in
the xml file.
So I get a user variable as input (e.g..http://../..cgi?person_id=12042)
And I need that variable in my sql-statement, but when I do the following
my $id = param('id');
...
select p.id, p.name, p.first_name from person p where p.id = $id;
I get an error:
CGI Error
The specified CGI application misbehaved by not returning a complete set of
HTTP headers. The headers it did return are:
DBD::mysql::st execute failed: You have an error in your SQL syntax; check
the manual that corresponds to your MySQL server version for the right
syntax to use near '' at line 10 at C:/Perl/site/lib/XML/Generator/DBI.pm
line 91.
is there a solution for this?
Thxs
transfers it into an xml-file file and than I parse this to a html
document using xsl.
The problem is dat the html doc needs a parameter which can be found in
the xml file.
So I get a user variable as input (e.g..http://../..cgi?person_id=12042)
And I need that variable in my sql-statement, but when I do the following
my $id = param('id');
...
select p.id, p.name, p.first_name from person p where p.id = $id;
I get an error:
CGI Error
The specified CGI application misbehaved by not returning a complete set of
HTTP headers. The headers it did return are:
DBD::mysql::st execute failed: You have an error in your SQL syntax; check
the manual that corresponds to your MySQL server version for the right
syntax to use near '' at line 10 at C:/Perl/site/lib/XML/Generator/DBI.pm
line 91.
is there a solution for this?
Thxs