PDO ist not supported in target system I\'m working on and though I seek a solution for preventing SQL-Injection using PHP 5.1.x on a
As far as I could gather from the docs it should guard you against SQL injection.
A more generic approach would be to use pg_query_params as it's not connected with preparing the query.