Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Writing HASH to a Table

Quote Reply
Writing HASH to a Table
Hi:

I am at wits end....maybe because it's late, maybe because I have a three month old... BUT..

I have created a new table. Fine. I created a .def file for it, fine. I am trying to connect and write to it, and it is not working!

I am connecting using this command:
my $review_db = $DB->table('Review');

That seems to work. But I cannot WRITE to the table "Review". I am using:

$review_db->add ( { Link_ID => $id, Title => $title, Review => $review, User => $username, Post_Date => $today } );

and that did not work. I set up each field like this:

$rec->{Link_ID} = $id;

and then tried

$review_db->insert ($rec);

and that did not work. I am missing something really stupid here, I know it... but what? The syntax is working... I am getting the results page I want, but the data is not being written to "Review".

dave

Subject Author Views Date
Thread Writing HASH to a Table carfac 2464 Apr 3, 2001, 10:08 PM
Post Re: Writing HASH to a Table
Stealth 2386 Apr 3, 2001, 10:26 PM
Thread Re: Writing HASH to a Table
pugdog 2391 Apr 4, 2001, 5:35 AM
Post Re: Writing HASH to a Table
carfac 2369 Apr 4, 2001, 9:36 AM
Thread Re: Writing HASH to a Table
Alex 2357 Apr 6, 2001, 8:46 AM
Post Re: Writing HASH to a Table
carfac 2357 Apr 6, 2001, 9:36 AM