Can someone tell me what's wrong here.... it's driving me nuts ... please any help would be greatly appreciated
################################# use OLE; # use Win32::OLE if using the Std Distribution $Conn = CreateObject OLE "ADODB.Connection"; $Conn->Open("Provider=SQLOLEDB;Data Source=coa-iisserver2;Initial Cata +log=ETM;User Id=sa;Password=;"); $an = $Form{'Affiliate_Referrer'}; $ct = $Form{'Courtesy Title'}; $fn = $Form{'First Name'}; $ln = $Form{'Last Name'}; $ea = $Form{'Email Address'}; $wa = $Form{'Website Address'}; $cn = $Form{'Company Name'}; $ad = $Form{'Address'}; $ci = $Form{'City'}; $sp = $Form{'State/Province'}; $zc = $Form{'Zip/Postal Code'}; $co = $Form{'Country'}; $pn = $Form{'Phone Number'}; $ex = $Form{'Ext'}; $fa = $Form{'Fax'}; $re = $Form{'Reffered'}; $de = $Form{'Description'}; $ke = $Form{'Keywords'}; $Conn->Execute($sql); $RS = $Conn->Execute("SELECT * FROM affiliate where Affiliate_Number=" +.$an); if( $RS->EOF ) { &error('bad_affiliate_number'); } else { $sql="update affiliate set Affiliate_Refferals=Affiliate_Refferals+1 w +here Affiliate_Number=".$an; $Conn->Execute($sql); $sql = "INSERT INTO clients (Affiliate_Referrer,Courtesy_Title,First_N +ame,Last_Name,Email_Address,Website_Address,Address,Company_Name,City +,Postal_Code,State_Province,Country,Phone_Number,Ext,Fax,Reffered,Des +cription,Keywords) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)",$an,$ct,$fn,$ln,$ea,$wa, +$cn,$ad,$ci,$sp,$zc,$co,$pn,$ex,$fa,$re,$de,$ke; $RS->Close; $Conn->Close; ##################################### } }

Edit by tye


In reply to Undescribed problem with Win32::OLE by MiRaGe 508

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.