>
> Occasionally I find I need to copy hash values to temp variables to get
> things to work right.
> [..]
>
> Otherwise I get some cryptic hash reference instead of the value. I
> remember stumbling across an explanation of this somewhere.
You must not insert spaces between a variable inside a
From: "Henrickson, Diana" <[EMAIL PROTECTED]>
I realize this may be a silly question but I cannot get this to work. I'm
trying to pass form variables into a database using DBD::DB2..
$sth = $dbh -> prepare ("INSERT INTO USERDATA(FIRST_NAME)
VALUES($fdat{cgifirst})") or die "Canno
"Henrickson, Diana" wrote:
> I realize this may be a silly question but I cannot get this to work. I'm
> trying to pass form variables into a database using DBD::DB2..
>
> $sth = $dbh -> prepare ("INSERT INTO USERDATA(FIRST_NAME)
> VALUES($fdat{cgifirst})") or die "Cannot INSERT to '$table'" ;
>
It would be nice to see your embperl.log file
(probably automatically written to /tmp/embperl.log)
Also, what error messages are you getting?
Finally, use Data::Dumper and print out the form data
that you think exists like this:
[+ use Data::Dumper;
Data::Dumper->Dump([\%fdat],['fdat']);
+]
t
I realize this may be a silly question but I cannot get this to work. I'm
trying to pass form variables into a database using DBD::DB2..
$sth = $dbh -> prepare ("INSERT INTO USERDATA(FIRST_NAME)
VALUES($fdat{cgifirst})") or die "Cannot INSERT to '$table'" ;
Is there a different way I need to r