excellent :) thanks here is the code.
$username="admin"; $pw="temppwd"; # connect to the named DSN, returns a database handle $dbh=new Win32::ODBC("DSN=APS;UID=$username;PWD=$pw;"); die "Unable to connect to DSN PerlSysAdm:" . Win32::ODBC::Error( ) . +"\n" unless (defined $dbh); $selst = "select APSVehicles.*, DlrLogins.* FROM APSVehicles INNER JOI +N DlrLogins ON APSVehicles.Dealer = DlrLogins.P1 or APSVehicles.Deale +r = DlrLogins.P2 WHERE DlrLogins.UserID = '$AuthUser' ORDER by DLRID" +; print "<BR>$selst<BR>\n"; $rc = $dbh->Sql($selst); die "Error: " . Win32::ODBC::Error( ) . "\n"; $results = $dbh->RowCount( ); $a = 1; $temp = 0; while ($dbh->FetchRow( )) { push(@AutoActive,$dbh->Data("AutoActive")); push(@Tag,$dbh->Data("Tag")); push(@Dealer,$dbh->Data("Dealer")); push(@YrMade,$dbh->Data("YrMade")); push(@Make,$dbh->Data("Make")); push(@Model,$dbh->Data("Model")); push(@ExtCol,$dbh->Data("ExtCol")); push(@Price,$dbh->Data("Price")); push(@DateAdded,$dbh->Data("DateAdded")); push(@FinanceAvail,$dbh->Data("FinanceAvail")); $a = ++$a; } $dbh->DropCursor( ); $dbh->Close( );
Thanks - Zack

In reply to Re^2: Question about joins? by zackdade
in thread Question about joins? by zackdade

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.