Re: [Cgi-session-user] Trouble with C::S::SQLite
Brought to you by:
sherzodr
From: Ron S. <ro...@sa...> - 2006-03-07 03:34:22
|
On Mon, 6 Mar 2006 21:18:09 -0600, Puneet Kishor wrote: Hi Puneet > 34=3D sub store { > 35=3D my $self =3D shift; > 36=3D my ($sid, $datastr) =3D @_; > 37=3D return $self->set_error("store(): usage error") unless $sid > && $datastr; > 38=3D > 39=3D my $dbh =3D $self->{Handle}; 40=3D > 41=3D my $sth =3D $dbh->prepare("SELECT id FROM " . $self- > >table_name . " WHERE id=3D?"); At this point I would write the value returned by $self -> table_name() to the web server's log, or to a disk file. That will tell you /exactly/= what the program thinks the table's name is. > 42=3D unless ( defined $sth ) { > 43=3D return $self->set_error( "store(): \$sth->prepare > failed with message " . $dbh->errstr ); > 44=3D } . -- Cheers Ron Savage, ro...@sa... on 7/03/2006 http://savage.net.au/index.html Let the record show: Microsoft is not an Australian company |