in reply to Cannot insert into MS Access Memo field with DBI
Hope that helps someone out there... =) Drewbert2000 08-Jan-2002 ===========my $dbh = DBI->connect('DBI:ODBC:whatever', 'whatever', 'whatever'); my $sql = q{ INSERT INTO tblGuestbook (name, email, country, website, publicmessage, privatemessage, IP) values (?,?,?,?,?,?,?) }; my $sth = $dbh->prepare($sql); # Do this line for each one being inserted into a Memo field. $sth->bind_param( 4, $publicmesage, DBI::SQL_LONGVARCHAR ); $sth->bind_param( 5, $privatemesage, DBI::SQL_LONGVARCHAR ); $sth->execute($name,$email,$country,$website,$publicmessage,$privateme +ssage,$ENV{REMOTE_ADDR}); $sth->finish; $dbh->disconnect;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Cannot insert into MS Access Memo field with DBI
by Anonymous Monk on Jul 16, 2009 at 14:38 UTC | |
by auntie_anne (Initiate) on Jul 22, 2009 at 18:42 UTC | |
|
Re: Re: Cannot insert into MS Access Memo field with DBI
by Anonymous Monk on Mar 15, 2004 at 15:10 UTC | |
by Anonymous Monk on Oct 02, 2007 at 14:40 UTC | |
by rjberry (Novice) on Oct 06, 2008 at 12:59 UTC |