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 20932 Jul 22, 2009, 2:01 AM
Thread Re: [courierb] insert hash into db
courierb 20694 Jul 22, 2009, 2:51 AM
Thread Re: [courierb] insert hash into db
Andy 20656 Jul 22, 2009, 3:32 AM
Thread Re: [Andy] insert hash into db
courierb 20711 Jul 22, 2009, 4:41 AM
Thread Re: [courierb] insert hash into db
Andy 20642 Jul 22, 2009, 4:44 AM
Thread Re: [Andy] insert hash into db
courierb 20660 Jul 22, 2009, 5:27 AM
Post Re: [courierb] insert hash into db
Andy 20627 Jul 22, 2009, 5:31 AM
Thread Re: [courierb] insert hash into db
courierb 20634 Jul 22, 2009, 5:33 AM
Thread Re: [courierb] insert hash into db
courierb 20625 Jul 22, 2009, 5:36 AM
Thread Re: [courierb] insert hash into db
courierb 20612 Jul 22, 2009, 5:38 AM
Post Re: [courierb] insert hash into db
courierb 20584 Jul 22, 2009, 5:41 AM