Bu soru, this thread dayanmaktadır.
Do you need the explicit sanitizing when you use pg_prepare?
Ben pg_prepare biz bu gerekmez kullanıcının giriş otomatik olarak bu tür sanitizes hissediyorum
$question_id = filter_input(INPUT_GET, 'questions', FILTER_SANITIZE_NUMBER_INT);
Context where I use Postgres
$result = pg_prepare($dbconn, "query9", "SELECT title, answer
FROM answers
WHERE questions_question_id = $1;");
$result = pg_execute($dbconn, "query9", array($_GET['question_id']));