# Current Flight bids

**URL:** <https://forum.phpvms.net/t/current-flight-bids/2424>\
**Category:** Code Snippets\
**Created:** [April 16, 2010, 10:05am UTC](https://forum.phpvms.net/t/current-flight-bids/2424 "2010-04-16T10:05:03Z")\
**Posts on this page:** 8\
**Page:** 1

<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 16, 2010, 10:05am UTC](https://forum.phpvms.net/t/current-flight-bids/2424/1 "2010-04-16T10:05:03Z")

</div>

Hi is there a quick way of displaying the current flight bids on another page just like they are in the admin section?

---

<div class="post-metadata">

**Author:** ![simpilot](https://forum.phpvms.net/user_avatar/forum.phpvms.net/simpilot/32/26_2.png) [@simpilot](https://forum.phpvms.net/u/simpilot)\
**Post date:** [April 16, 2010, 11:38am UTC](https://forum.phpvms.net/t/current-flight-bids/2424/2 "2010-04-16T11:38:08Z")

</div>

You can get all the current bid info using

```
<?php $bids = SchedulesData::getAllBids(); ?>

```

Then use your $bids variable to display what you would like

---

<div class="post-metadata">

**Author:** ![TennShadow](https://forum.phpvms.net/user_avatar/forum.phpvms.net/tennshadow/32/16_2.png) [@TennShadow](https://forum.phpvms.net/u/TennShadow)\
**Post date:** [April 16, 2010, 12:26pm UTC](https://forum.phpvms.net/t/current-flight-bids/2424/3 "2010-04-16T12:26:23Z")

</div>

> You can get all the current bid info using
> 
> \<?php $bids = SchedulesData::getAllBids(); ?\>
> 
> Then use your $bids variable to display what you would like

Awesome, thanks Simpilot. Moving to Code Sniplets!

---

<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 16, 2010, 1:38pm UTC](https://forum.phpvms.net/t/current-flight-bids/2424/4 "2010-04-16T13:38:41Z")

</div>

Cheers, Thanks for that

---

<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 22, 2011, 8:40pm UTC](https://forum.phpvms.net/t/current-flight-bids/2424/5 "2011-04-22T20:40:21Z")

</div>

You could use the same code above but you need to include the codon config to phpvms at the top of the new page to access the api.

---

<div class="post-metadata">

**Author:** ![dimitris](https://forum.phpvms.net/letter_avatar_proxy/v4/letter/d/db5fbb/32.png) [@dimitris](https://forum.phpvms.net/u/dimitris)\
**Post date:** [April 22, 2011, 10:23pm UTC](https://forum.phpvms.net/t/current-flight-bids/2424/6 "2011-04-22T22:23:04Z")

</div>

You can use this php command to do that:

```
<?php include("your-site-path/codon.config.php"); ?>

```

On top of your page. Take a farther look here:

[http://www.w3schools.com/PHP/php\_includes.asp](http://www.w3schools.com/PHP/php_includes.asp)

And here:

[http://php.net/manual/en/function.include.php](http://php.net/manual/en/function.include.php)

---

<div class="post-metadata">

**Author:** ![LeonardIGO4036](https://forum.phpvms.net/user_avatar/forum.phpvms.net/leonardigo4036/32/1087_2.png) [@LeonardIGO4036](https://forum.phpvms.net/u/LeonardIGO4036)\
**Post date:** [May 1, 2017, 5:43pm UTC](https://forum.phpvms.net/t/current-flight-bids/2424/7 "2017-05-01T17:43:39Z")

</div>

Hi im learning my way in phpVMS, hence excuse this question if this is stupid

&nbsp;i tried to use this Snippet, but no joy, In phpVMS i have bids, and ive also inserted this code, now how do i access them?

Give me an example

This is how i intend to use the details

\<table class=“table”\>  
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;\<thead\>  
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \<h4\>\<tr\>  
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;\<th\>Pilot\</th\>  
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;\<th\>Aircraft\</th\>  
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;\<th\>Sector\</th\>  
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \</tr\>\</h4\>  
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;\</thead\>

\<tbody\>  
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&nbsp; &nbsp;\<?php $bids = SchedulesData::getAllBids(); ?\>  
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \<tr\> \<!-- &nbsp;I NEED TO GET THE DETAILS OF BIDS&nbsp;&nbsp;AND PASTE IT HERE–\>  
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;\<td\>???\</td\>

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&nbsp;\<td\>???\</td\>&nbsp;

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;\<td\>???\</td\>

\</tbody\>

&nbsp;

---

<div class="post-metadata">

**Author:** ![Aaryan](https://forum.phpvms.net/user_avatar/forum.phpvms.net/aaryan/32/1068_2.png) [@Aaryan](https://forum.phpvms.net/u/Aaryan)\
**Post date:** [August 19, 2017, 10:37am UTC](https://forum.phpvms.net/t/current-flight-bids/2424/8 "2017-08-19T10:37:39Z")

</div>

> On 5/1/2017 at 11:13 PM, LeonardIGO4036 said:
> 
> Hi im learning my way in phpVMS, hence excuse this question if this is stupid
> 
> &nbsp;i tried to use this Snippet, but no joy, In phpVMS i have bids, and ive also inserted this code, now how do i access them?
> 
> Give me an example
> 
> This is how i intend to use the details
> 
> \<table class=“table”\>  
> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;\<thead\>  
> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \<h4\>\<tr\>  
> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;\<th\>Pilot\</th\>  
> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;\<th\>Aircraft\</th\>  
> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;\<th\>Sector\</th\>  
> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \</tr\>\</h4\>  
> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;\</thead\>
> 
> \<tbody\>  
> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&nbsp; &nbsp;\<?php $bids = SchedulesData::getAllBids(); ?\>  
> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \<tr\> \<!-- &nbsp;I NEED TO GET THE DETAILS OF BIDS&nbsp;&nbsp;AND PASTE IT HERE–\>  
> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;\<td\>???\</td\>
> 
> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&nbsp;\<td\>???\</td\>&nbsp;
> 
> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;\<td\>???\</td\>
> 
> \</tbody\>
> 
> &nbsp;

U need to trigger a foreach($bids as $bid)

Use the variables used in used in schedule\_bids.php
