Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
#!/usr/local/bin/bash use CGI qw(:standard); use Win32::ODBC; $qry = new Win32::ODBC('support_agreement_DSN'); @mac = split (/,/,param('MAC')); foreach $mac_addr (@mac) { $sql = "SELECT agreement.Field2 FROM agreement WHERE (((agreement. +Field1)='$mac_addr'))"; $qry->Sql($sql); $qry->FetchRow(); $support_status{$mac_addr}= $qry->Data('agreement.Field2'); } $qry->Close();
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: ODBC
by BlueBlazerRegular (Friar) on Apr 30, 2002 at 21:16 UTC | |
|
Re: ODBC
by beamsack (Scribe) on May 01, 2002 at 00:54 UTC | |
|
Re: ODBC
by dws (Chancellor) on Apr 30, 2002 at 23:28 UTC | |
|
Re: ODBC
by beebware (Pilgrim) on May 01, 2002 at 13:15 UTC |