#.... other code for this table is above... $_pstmt .= ',' if $_pstmt; $_pstmt .= '`all_details` = ?'; push(@_pplaceholder,"$_alldotnot"); $_pstmt .= ',' if $_pstmt; $_pstmt .= '`admin_notes` = ?'; push(@_pplaceholder,"Order Details"); $_pstmt = "INSERT INTO `accttrans` SET $_pstmt"; $_checkifposted = $dbh->do($_pstmt, undef, @_pplaceholder);