in reply to WIN32::ODBC Returning to few rows...
#!perl
use Win32::ODBC;
$DSN = "cheat";
if (!($db = new Win32::ODBC($DSN))){
print "Error connecting to $DSN\n";
print "Error: " . Win32::ODBC::Error() . "\n";
exit;
}
if (!($dbORG = new Win32::ODBC($DSN))){
print "Error connecting to $DSN\n";
print "Error: " . Win32::ODBC::Error() . "\n";
exit;
}
$SqlStatement = "SELECT * FROM tblCheats";
if ($dbORG->Sql($SqlStatement)){
print "SQL failed.\n";
print "Error: " . $dbORG->Error() . "\n";
$$dbORG->Close();
exit;
}
while($dbORG->FetchRow()){
undef %Data2;
%Data2 = $dbORG->DataHash();
print "$Data2{'name'}\n";
}
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: WIN32::ODBC Returning to few rows...
by Anonymous Monk on Oct 08, 2002 at 17:54 UTC | |
|
Re: Re: WIN32::ODBC Returning to few rows...
by KrYo (Initiate) on Apr 09, 2001 at 10:59 UTC |