Updated myapp.php with correct syntax.
Fixed access issues with apporpriate id.