query(<<<'SQL' SELECT item.id, item.title AS item_title, coalesce(item.updated_on, item.published_on) AS as_of, feed.title AS feed_title FROM item INNER JOIN feed ON feed.id = item.feed_id WHERE item.is_read = 0 ORDER BY coalesce(item.updated_on, item.published_on) DESC SQL); $item = $result ? $result->fetchArray(SQLITE3_ASSOC) : false; page_head('Welcome'); ?>

Your Unread Items

>

fetchArray(SQLITE3_ASSOC); } } else { ?>

There are no unread items

close();