Jump to content

oracle765

Members
  • Posts

    219
  • Joined

  • Last visited

Posts posted by oracle765

  1. Hi Professionals

     

    I have a date calculation to calculate the number of days between two dates which works fine.

     

    When I try to put this into MySQL query with the " + $num_of_days + " it does not work

     

     

    any ideas where im going wrong as the query return nothing(code attached)

     

    thanks in advance

    mysql.txt

  2. Hi PravinS

     

    Thanks for that I can get some of them to work now, because someone else wrote this code I cannot figure out how to get the ages to pass through and also the startdate and enddate are still empty, the rest are fine. you can see what I mean by the ages as they are dynamic somehow with the drop down box on compareandchoose.com.au/insurance.php

     

    I have included my webpage for clarity sake

    insurance.php

  3. Hi again

     

     

    Now I just get Agents , just a comma and Price is fine, no name showing, I thought it might have been agents supposed to show a capital A but that didn't work either

     

    you can see on www.compareandchoose.com.au/skyscanner.php

     

     

     

    here is my code for clarity sake

     

     

    once again many thanks

    skyscanner.php

  4. ok thanks just on the last part you say

     

    You'll also get the flight carrier from the $array['Legs'] array, again each carrier has their own unique id which you need to loop up within the $array['Carriers'] array

     

    could you explain what you mean by loop up with that array, sorry to be a pain but arrays are my weekpoint lol

     

     

    thanks again your an excellent role model to this forum

  5. hi CH0cu3r

     

    Thanks for that as it now extracts results, but as you can see it just produces lines and lines of prices, airlines etc,  how do you actually know which Agent, flight, airline, price etc is linked to which

     

    EG Image, British airways, from, to, departure, arrival, price etc <br>

     

          Image, Air Lingus, from, to, departure, arrival, price etc <br> and so on

     

    again thanks in advance you have been a massive help in figuring out my array problems which I am totally new to

  6. I have the following semi colon delimited file, in fact hundreds of them which are all the same format

     

    Does PHP have the facility to open this file and split it into 3 separate excel or csv files

     

     

    EG

     

    For the OS

     

    Machine, Manufacturer, Model, Current User, OS, Version, Install Date

    DETAILS HERE

     

    For the CPU

     

    Model, Socket Designation,Status, 3 of Cores, 3 of Logical Processors

    DETAILS HERE

     

    and for the Servicea

     

    Service,State,Install Date, Install Path

    DETAILS HERE

    Spiltintofiles.txt

  7. if tried

     

    foreach ($array['Itineraries']['PricingOptions'] as $arr) {

     

    echo "<b> Price </b> " .$arr['Price'], " <br> price </b>,$arr['Price'] ?> <br />

    <?php

    }

    ?>

     

    to try and echo out the Price twice but I just get an error  saying

     

    Fatal Error: Cannot use object of type stdClass as array in /home/etc/etc/skyscanner.php

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.