Added function view() in posts.php for individual post views. mysqli_reach_row -> myaqli_fetch_assoc in database.php.