# Most flown routes...

**URL:** <https://forum.phpvms.net/t/most-flown-routes/3289>\
**Category:** Development Help\
**Created:** [August 23, 2010, 6:10pm UTC](https://forum.phpvms.net/t/most-flown-routes/3289 "2010-08-23T18:10:07Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![MrAmsterdam](https://forum.phpvms.net/user_avatar/forum.phpvms.net/mramsterdam/32/20_2.png) [@MrAmsterdam](https://forum.phpvms.net/u/MrAmsterdam)\
**Post date:** [August 23, 2010, 6:10pm UTC](https://forum.phpvms.net/t/most-flown-routes/3289/1 "2010-08-23T18:10:07Z")

</div>

Hey all,

I am wondering if it’s possible to create a code that can show the top 10 most flown routes. I know i can see it in the admin panel but i would like it to be available as information for my pilots as well…

just a thought, hopefully someone knows the answer? 🙂

Regards,

Lucas

---

<div class="post-metadata">

**Author:** ![Nuclear](https://forum.phpvms.net/user_avatar/forum.phpvms.net/nuclear/32/90_2.png) [@Nuclear](https://forum.phpvms.net/u/Nuclear)\
**Post date:** [August 23, 2010, 6:58pm UTC](https://forum.phpvms.net/t/most-flown-routes/3289/2 "2010-08-23T18:58:02Z")

</div>

Here, try this…

[Top\_Flights\_Module.zip](\< _ **base\_url** _ \>/applications/core/interface/file/attachment.php?id=392)

---

<div class="post-metadata">

**Author:** ![MrAmsterdam](https://forum.phpvms.net/user_avatar/forum.phpvms.net/mramsterdam/32/20_2.png) [@MrAmsterdam](https://forum.phpvms.net/u/MrAmsterdam)\
**Post date:** [August 23, 2010, 9:53pm UTC](https://forum.phpvms.net/t/most-flown-routes/3289/3 "2010-08-23T21:53:34Z")

</div>

> Here, try this…

YeH! Respect!

---

<div class="post-metadata">

**Author:** ![CPC900](https://forum.phpvms.net/letter_avatar_proxy/v4/letter/c/a8b319/32.png) [@CPC900](https://forum.phpvms.net/u/CPC900)\
**Post date:** [August 25, 2010, 3:43pm UTC](https://forum.phpvms.net/t/most-flown-routes/3289/4 "2010-08-25T15:43:04Z")

</div>

Hmmm…I get this:

“Warning: Invalid argument supplied for foreach() in …/core/templates/topflights\_main.tpl on line 6”

---

<div class="post-metadata">

**Author:** ![CPC900](https://forum.phpvms.net/letter_avatar_proxy/v4/letter/c/a8b319/32.png) [@CPC900](https://forum.phpvms.net/u/CPC900)\
**Post date:** [August 25, 2010, 3:57pm UTC](https://forum.phpvms.net/t/most-flown-routes/3289/5 "2010-08-25T15:57:25Z")

</div>

Nevermind. I forgot to change my database reference. I don’t use the “phpvms\_schedules” sql format on line 4. All good now. Thanks.
