in reply to CGI - remove unwanted values

DreamT:

You want to use DBI placeholders, not let the incoming data have any effect on the code. The difference is something like this:

Case 1

Case 1: Updated to prevent free coffee and file destruction.

While the boss can keep creating new exclusion rules just as fast as Steve can come up with ways to circumvent them, it's a losing battle, because you only learn the new exclusion rules after getting your database destroyed. Instead, don't let Steve tell anyone what to do. Simply let him provide you with data. At the worst, he can screw up his own records.

Case 2: Using placeholders

...roboticus

When your only tool is a hammer, all problems look like your thumb.