I am thoroughly freaked out. Problem solved, no idea why. Lemme explain... I did not include a piece of code in my post:
if (($row->{'cust_phpx'} != '') && ($row->{'cust_phsx'} != '')) { # # Execute the query # }
I took your advice and traced the bastard, which showed me how MySQL was choking (even after using bind_param), if you will:
-> execute for DBD::mysql::st (DBI::st=HASH(0x8218138)~0x82180b4 ' +3048770' '2' '1' '704' 53 2 89 '45') -> dbd_st_execute for 082180a8 Binding parameters: INSERT INTO PhoneNumbers (cusID, adtID, pntI +D, phnPart1, phnPart2, phnPart3, phnExt) VALUES ('3048770', '2', '1', '704', 53, 2 89, '45') ERROR EVENT 1064 'You have an error in your SQL syntax near '89, ' +45')' at line 2' on DBI::st=HASH(0x82180b4)
On a lark I replaced the "!=" in the if test with "ne". No more errors. I don't get it. It seems like the comparison operator "fiddled with the nature" of the variable it was operating on. Whatever that means. By the way check this out. See the fifth bugfix for v.053. (This has nothing to do with the code I'm working on, I don't even know what "WeSQL" is, but when I desperately googled for answers, I found this). Something smells fishy...I hope it's just my lunch.

In reply to Re: Re: Using placeholders, getting unexpected SQL errors by ok
in thread Using placeholders, getting unexpected SQL errors by ok

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.