Gossamer Forum
Home : General : Databases and SQL :

insert hash into db

Quote Reply
insert hash into db
HI seniro


I try to insert partial of cookie into the column orderdetail , unfortunately it seems i am doing something wong

Could someone here help me a bit?

Many thanks.



my $cgi = new GT::CGI;
my $session = new CGI::Session(undef, $cgi, {Directory=>'c:/tmp/carttmp'});
my @partofcookie= @{$session->param('CART')};
$tab->insert( #######
{

ID => '2merchantID@merchantID.com' ,
orderdate => \"now()" ,
orderdetail => "@partofcookie" ,
Sname => '2testname' ,
Semail => 'test@test.com'
} )##############ended



After inserting colum of orderdetail show somethiinglike this (HASH(0x1c30450))
Subject Author Views Date
Thread insert hash into db courierb 14821 Jul 22, 2009, 2:01 AM
Thread Re: [courierb] insert hash into db
courierb 14663 Jul 22, 2009, 2:51 AM
Thread Re: [courierb] insert hash into db
Andy 14629 Jul 22, 2009, 3:32 AM
Thread Re: [Andy] insert hash into db
courierb 14711 Jul 22, 2009, 4:41 AM
Thread Re: [courierb] insert hash into db
Andy 14614 Jul 22, 2009, 4:44 AM
Thread Re: [Andy] insert hash into db
courierb 14653 Jul 22, 2009, 5:27 AM
Post Re: [courierb] insert hash into db
Andy 14623 Jul 22, 2009, 5:31 AM
Thread Re: [courierb] insert hash into db
courierb 14618 Jul 22, 2009, 5:33 AM
Thread Re: [courierb] insert hash into db
courierb 14607 Jul 22, 2009, 5:36 AM
Thread Re: [courierb] insert hash into db
courierb 14599 Jul 22, 2009, 5:38 AM
Post Re: [courierb] insert hash into db
courierb 14569 Jul 22, 2009, 5:41 AM