Update tasks.php

Added function for displaying a task by the id.