Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7680323
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T18:05:20+00:00 2026-05-31T18:05:20+00:00

This is super strange. I used a portion of code for a new project

  • 0

This is super strange.

I used a portion of code for a new project I was working on, and for some reason the results won’t display correctly. (They display, just one at a time though)

It worked for me in the past and I really don’t get why its not displaying like it should

(Maybe it has to do with the fact I took a yearlong hiatus from coding and PHP 5 is wayyy different from the version I was used to)

Here’s the code

<?php
$search = $_GET['search'];
$sfrom = $_GET['departure_label'];
$sfromda = $_GET['txtdate1'];
$sto = $_GET['arrival_label'];
$stoda = $_GET['txtdate2'];
$padt = $_GET['ddlPaxADT'];
$pchd = $_GET['ddlPaxCHD'];
$pinf = $_GET['ddlPaxINF'];
$addition = $padt+$pchd+$pinf;
$currency = $_GET['Currency'];

  //connect to database
  mysql_connect("localhost","poop","goldpoop");
  mysql_select_db("moregoldpoop");




  //echo outconstruct
  $sql = mysql_query("SELECT * FROM search_v WHERE Currency='$currency' AND rout_to='$sto' AND rout_from='$sfrom'ORDER BY date_avialable DESC");
  $runrows = mysql_fetch_array($sql);

   {

    //get data
$flightid = $runrows['flight_id'];
$aseats = $runrows['seats_avialable'];
$todate = strftime("%b %d, %Y %l:%M %p" ,strtotime($runrows['to_date']));
$date = strftime("%b %d, %Y %l:%M %p" ,strtotime($runrows['date_avialable']));
$from = $runrows['rout_from'];
$to = $runrows['rout_to'];
$acost = $runrows['adult_cost'];
$ccost = $runrows['child_cost'];
$cur = $runrows['currency'];
$oth = $runrows['other_cost'];
   echo "";
?>
<li class="item clearfix"> <span
 id="cntntMiddle_ctl01_rptmain_lblFromt_0">
    <table cellpadding="0" cellspacing="0">
      <thead><tr>
        <th class="price">Price</th>
        <th>From</th>
        <th>To</th>
        <th>Depart</th>
      </tr>
      </thead><tfoot> <tr>
        <td><a class="more" href="#">Full
Details</a></td>
        <td colspan="6">
        <div class="select-wrap">
        <p class="seats"><strong><?php echo $aseats; ?></strong> <span>seats
left</span> <em>at this price</em></p>
        <button class="btn-select" type="button"
 onclick='return ray.ajax("#");'>Select Flight</button></div>
        </td>
      </tr>
      </tfoot><tbody>
        <tr>
          <td class="price" rowspan="2"><a
 style="font-weight: bold; cursor: pointer; text-decoration: none;"
 herf="#" onclick='return ray.ajax("#");'><span
 style="font-size: 24px; font-weight: bold;"><?php echo $acost; ?></span><span
 style="font-size: 11px; margin-top: 2px; display: block; color: rgb(255, 255, 255); text-align: center; font-weight: normal;">per
adult</span><span
 style="font-size: 12px; margin-top: 2px; display: block; color: rgb(255, 255, 255); text-align: center; font-weight: normal;">(with fees)</span></a></td>
          <td><?php echo $from; ?></td>
          <td><?php echo $to ?></td>
          <td style="padding-right: 2px;"><?php echo $date; ?></td>
        </tr>
      </tbody>
    </table>
    </span> <a
 id="cntntMiddle_ctl01_rptmain_lblResultDetails1_0" title="1"
 href="javascript:__doPostBack('ctl00$cntntMiddle$ctl01$rptmain$ctl00$lblResultDetails1','')"
 style="color: Black;"></a><a class="close"
 href="#">Close</a>
    <div class="info clearfix">
    <div class="info clearfix">
    <h4>Departing Flight</h4>
    <ul class="clearfix">
      <li>
        <h5><?php echo $from; ?> to <?php echo $to; ?> <?php echo $date; ?></h5>
        <ul>
          <li>&nbsp;</li>
          <li><strong>Flight #</strong> - <?php echo $flightid; ?></li>
          <li><strong>Departure Time – </strong>
<?php echo $date; ?></li>
        </ul>
      </li>
    </ul>
      <ul>
        <li style="padding-top: 5px;"><span
 style="color: rgb(212, 22, 13); font-weight: bold; font-size: 11px; text-decoration: none;">
Fare Breakdown</span> </li>
      </ul>
      <table class="more">
        <tbody>
          <tr>
            <th>Passenger</th>
            <th>Fare</th>
            <th> Taxes and Fees</th>
            <th>Qty</th>
            <th>Total Cost</th>
          </tr>
        </tbody><tbody>
          <tr>
            <td>Adult</td>
            <td
 style="color: rgb(100, 100, 100); font-size: 11px; font-weight: bold;"><?php echo $acost; ?></td>
            <td><?php echo $oth; ?></td>
            <td id="paxAdtTd">1</td>
            <td><?php echo $acost; ?></td>
          </tr>
          <tr>
            <td>&nbsp;</td>
            <td>&nbsp;</td>
            <td>Cost of Sale(<?php echo $cur; ?>)</td>
            <td>&nbsp;</td>
            <td
 style="color: rgb(100, 100, 100); font-size: 14px; font-weight: bold;"><?php echo $acost; ?></td>
          </tr>
        </tbody>
      </table>
      <br />
      <span style="font-weight: bold; padding-top: 10px;">
*Additional airline fees for baggage may apply</span>
      <div class="select-wrap">
      <p class="seats"><strong><?php echo $aseats; ?></strong> <span>seats
left</span> <em>at this price</em></p>
      <button class="btn-select" type="button"
 onclick='return ray.ajax("https://res.com/checkout.aspx?recommendation=1&subset=1&supplier=53&page=flightconfirm",1,this);'>Select
Flight</button></div>
</ul>
    </div>
    </div>
  </li>


<?php
}
?>

I just wanna know the main reason why it worked before and not now

Thanks guys

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T18:05:21+00:00Added an answer on May 31, 2026 at 6:05 pm

    Where is the loop? $runrows = mysql_fetch_array($sql); should be something like while ( $runrows = mysql_fetch_array($sql) )
    The loop block is there {} but the loop isn’t.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I just tossed this super simple code example into a Flash CS4 IDE frame
I'm pretty new to Java so sorry if this is super basic. Basically I
When using this class I get this strange exception. It is used to print
This code is causing a very strange exception in Chingu, a game library for
I have strange stacktrace when click to submit button (this code is rendered but
I am experiencing this strange behavior. I create a clean project (view template), add
I am having a strange problem when using this XML-to-NSDictionary class.really it was working
I thought that i have some good understanding of Java generics. This code DOES
This seems so super strange. I have the following $.when.apply(null, arrayOfDeferredObjects).then(function(result)) { if (1
A simple answer to this super simple question would be great! Here is the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.