How can you select the titles of the newest 3 questions from PostgreSQL database by PHP?
My attempt in PHP
$result = pg_prepare($dbconn, "query1", "SELECT title FROM
questions ORDER BY was_sent_at_time
WHERE question_id = $1;");
$result = pg_execute($dbconn, "query1", array(7, 1, 9);
// Problem HERE, since I do not know how you can get the 3 newest questions