sprakash has asked for the wisdom of the Perl Monks concerning the following question:
use strict; use OLE; my $dbh; $dbh = CreateObject OLE "ADODB.Connection" or die "Can't create connec +tion to DataBase: $!" unless $dbh; $dbh->Open("Driver={Microsoft Access Driver (*.mdb)};DBQ=\_private\db1 +.mdb"); my $sqlstatement="SELECT email,password FROM surya"; my $rs = $dbh->Execute($sqlstatement); while (!$rs->EOF()) { print $rs->Fields('email')->Value . " " . $rs->Fields('password')- +>Value . "\n"; $rs->MoveNext; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Can anyone help me -- this code executes but does not get data from MS Access database on web host
by BigJoe (Curate) on Dec 14, 2000 at 18:46 UTC | |
|
Re: Can anyone help me -- this code executes but does not get data from MS Access database on web host
by mrmick (Curate) on Dec 14, 2000 at 20:56 UTC |