hi,
I'm asking to connect to a DSN system (on windows98) ... I ceated a DSN file so to get
connection on it.
and when excecuting the small lignes bellow .
#!/perl/bin/perl
use Win32::ODBC;
my($db) = new Win32::ODBC("ConnectGestion100;UID=mouna;PWD=mennou;");
$db->Sql("SELECT * FROM F_ARTICLE");
while ($db->FetchRow()) {
my(%data) = $db->DataHash();
print $data{'AR_REF'};
print $data{'AR_DESIGN'};
print $data{'FA_CodeFamille'};
}
$db->Close();
I had the following errors :
[Fri Jan 25 13:42:22 2002] [error] [client 127.0.0.1] malformed header from script.
Bad header=3095562806099: c:/phpweb/cgi-bin/majbd.cgi
[Fri Jan 25 13:42:22 2002] [error] [client 127.0.0.1] Can't call method "Sql" on an
undefined value at c:/phpweb/cgi-bin/majbd.cgi line 38.
Thanks, asma