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
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