in reply to Re: MySQL and Perl... Update record Prob
in thread MySQL and Perl... Update record Prob
if (defined($in{new_aff}) && $in{new_aff} == 1) { if ($in{tax_id} ne "") { $dbh->do (qq{ UPDATE reg_users SET tax_id = ? WHERE username = + ? }, undef, $in{tax_id}, $username) || error("Error on +MySQL Update: $DBI::errstr"); } $dbh->do (qq{ UPDATE reg_users SET aff_url = ? WHERE username = ? +}, undef, $in{aff_url}, $username) || error("Error on MyS +QL Update: $DBI::errstr"); $dbh->do (qq{ UPDATE reg_users SET aff = ?, aff_su_date = ? WHERE +username = ? }, undef, "yes", $formated_date, $username) || error("Err +or on MySQL Update: $DBI::errstr"); } $dbh->do (qq{ UPDATE reg_users SET html_email = ? WHERE username = + ? }, undef, $in{html_email}, $username) || error("Error on +MySQL Update: $DBI::errstr"); $dbh->disconnect();
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: MySQL and Perl... Update record Prob
by pfaut (Priest) on Feb 03, 2003 at 15:05 UTC | |
by powerhouse (Friar) on Feb 03, 2003 at 16:29 UTC | |
|
Re: Re: Re: MySQL and Perl... Update record Prob
by rdfield (Priest) on Feb 03, 2003 at 16:37 UTC | |
by powerhouse (Friar) on Feb 03, 2003 at 17:42 UTC |