# Pilot Roster - Current Location

**URL:** <https://forum.phpvms.net/t/pilot-roster-current-location/2385>\
**Category:** phpVMS Legacy Support (v2/v5)\
**Created:** [April 9, 2010, 5:12pm UTC](https://forum.phpvms.net/t/pilot-roster-current-location/2385 "2010-04-09T17:12:45Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![ThomasH](https://forum.phpvms.net/user_avatar/forum.phpvms.net/thomash/32/66_2.png) [@ThomasH](https://forum.phpvms.net/u/ThomasH)\
**Post date:** [April 9, 2010, 5:12pm UTC](https://forum.phpvms.net/t/pilot-roster-current-location/2385/1 "2010-04-09T17:12:45Z")

</div>

Hello

I would like to get pilot roster at the end of the table not with the pilot him HUB, but current location indicated. I simply do not do it. If somebody can write to me please a code for it?

Thanks

Thomas

---

<div class="post-metadata">

**Author:** ![mark1million](https://forum.phpvms.net/user_avatar/forum.phpvms.net/mark1million/32/15_2.png) [@mark1million](https://forum.phpvms.net/u/mark1million)\
**Post date:** [April 9, 2010, 5:27pm UTC](https://forum.phpvms.net/t/pilot-roster-current-location/2385/2 "2010-04-09T17:27:24Z")

</div>

Hi the code to display the pilots current position in their profile is,

```
<?php echo $report->arricao;?>

```

Not sure if it will work in the pilots page, you could try something like,

```
<?php echo $userinfo->arricao;?>

```

See if that gives you anything, im sure someone more proficient in code will be along soon

---

<div class="post-metadata">

**Author:** ![ThomasH](https://forum.phpvms.net/user_avatar/forum.phpvms.net/thomash/32/66_2.png) [@ThomasH](https://forum.phpvms.net/u/ThomasH)\
**Post date:** [April 9, 2010, 5:33pm UTC](https://forum.phpvms.net/t/pilot-roster-current-location/2385/3 "2010-04-09T17:33:18Z")

</div>

Ok, this is my code in pilots\_list.tpl:

39 \<center\>\<td\>\<?php echo $userinfo-\>arricao;?\>\</td\>\</center\>

40 \</tr\>

41 \</tbody\>

42 \</table\>

But becom error message in the browser:

Parse error: syntax error, unexpected $end in /kunden/265414\_32756/html/phpvms/core/templates/pilots\_list.tpl on line 43

hmm, can you help me?

---

<div class="post-metadata">

**Author:** ![faraz](https://forum.phpvms.net/user_avatar/forum.phpvms.net/faraz/32/49_2.png) [@faraz](https://forum.phpvms.net/u/faraz)\
**Post date:** [April 9, 2010, 6:36pm UTC](https://forum.phpvms.net/t/pilot-roster-current-location/2385/4 "2010-04-09T18:36:39Z")

</div>

```
<?php $last_location = PIREPData::getLastReports($pilot->pilotid, 1, PIREP_ACCEPTED);
echo $last_location->arricao ;
?>

```

---

<div class="post-metadata">

**Author:** ![ThomasH](https://forum.phpvms.net/user_avatar/forum.phpvms.net/thomash/32/66_2.png) [@ThomasH](https://forum.phpvms.net/u/ThomasH)\
**Post date:** [April 9, 2010, 8:22pm UTC](https://forum.phpvms.net/t/pilot-roster-current-location/2385/5 "2010-04-09T20:22:00Z")

</div>

```
<center><td><?php $last_location = PIREPData::getLastReports($pilot->pilotid, 1, PIREP_ACCEPTED);
echo $last_location->arricao ; ?>
</td></center>
</tr>
 </tbody>
</table>

```

And then come:

```
Parse error: syntax error, unexpected $end in /kunden/265414_32756/html/phpvms/core/templates/pilots_list.tpl on line 45

```

---

<div class="post-metadata">

**Author:** ![nabeel](https://forum.phpvms.net/user_avatar/forum.phpvms.net/nabeel/32/2971_2.png) [@nabeel](https://forum.phpvms.net/u/nabeel)\
**Post date:** [April 9, 2010, 8:59pm UTC](https://forum.phpvms.net/t/pilot-roster-current-location/2385/6 "2010-04-09T20:59:42Z")

</div>

Look in the code snippets forum, I believe it’s there
