How should I prepare the code if it something fails? With try-catch statement or?
function delete_question ( $question_id ) { $dbconn =
I have another practice
$result = pg_query_params ( $dbconn,'DELETE FROM questions WHERE question_id = $1', array ( $question_id ) ) or die(pg_last_error($dbconn));