I've written a procedural function to [hopefully] create less cluttered code
when working with PostgreSQL transactions and I am soliciting criticism and
suggestions on how to make it better (or to scrap it).
function db_exec_transaction($dbh, $query_and_params, &$results_array, &$error_str)
die('Queries and parameters variable must be an array type');