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 20660 Jul 22, 2009, 2:01 AM
Thread Re: [courierb] insert hash into db
courierb 20426 Jul 22, 2009, 2:51 AM
Thread Re: [courierb] insert hash into db
Andy 20386 Jul 22, 2009, 3:32 AM
Thread Re: [Andy] insert hash into db
courierb 20442 Jul 22, 2009, 4:41 AM
Thread Re: [courierb] insert hash into db
Andy 20371 Jul 22, 2009, 4:44 AM
Thread Re: [Andy] insert hash into db
courierb 20391 Jul 22, 2009, 5:27 AM
Post Re: [courierb] insert hash into db
Andy 20357 Jul 22, 2009, 5:31 AM
Thread Re: [courierb] insert hash into db
courierb 20365 Jul 22, 2009, 5:33 AM
Thread Re: [courierb] insert hash into db
courierb 20357 Jul 22, 2009, 5:36 AM
Thread Re: [courierb] insert hash into db
courierb 20343 Jul 22, 2009, 5:38 AM
Post Re: [courierb] insert hash into db
courierb 20316 Jul 22, 2009, 5:41 AM