Ok, I replaced "undef" with "''"

It now looks like this... I'll show a little more code:
if (defined($in{new_aff}) && $in{new_aff} == 1) { # Checks to see if # they are adding our Affiliate Program to their registration if ($in{tax_id} ne "") { # Checks to see if they # added a tax id number for when we pay them $dbh->do (qq{ UPDATE reg_users SET tax_id = ? WHERE username = + ? }, '', $in{tax_id}, $username); } # Ok, these were required fields IF they checked the box which + made this # execute from above $dbh->do (qq{ UPDATE reg_users SET aff_url = ? WHERE username = ? +}, '', $in{aff_url}, $username); # the one above added their Website for us to view $dbh->do (qq{ UPDATE reg_users SET aff = ?, aff_su_date = ? WHERE +username = ? }, '', "yes", $formated_date, $username); # This one adds the affiliate program to the reg_users table. +it basically just # turns it 'on' } $dbh->do (qq{ UPDATE reg_users SET html_email = ? WHERE username = + ? }, '', $in{html_email}, $username); # this one just above was in a different part of the form, I j +ust added it. # It asks them if they support HTML email for our eMail update +s, they can # turn it off and on in the "registered users" manager I built +. $dbh->disconnect(); # Ok, now this finally disconnects.

It still does not work. It does not update these columns: html_email, tax_id and aff_url

The rest are updated (aff and aff_su_date)

Since those two get updated and the rest do not, I'm very lost. Like I said the $in{var} variables that are being called do have values. I don't know why MySQL is not updating them in the SQL syntax Perl is giving it.

Still lost.

Any other ideas?

Thx,
Richard.

In reply to Re: Re: MySQL and Perl... Update record Prob by powerhouse
in thread MySQL and Perl... Update record Prob by powerhouse

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.