Jump to content

ego0

Members
  • Posts

    12
  • Joined

  • Last visited

    Never

Posts posted by ego0

  1. I Have two dates both in the unix? format

    Countdown to date September, 18, 2006, 4:17:00 1158567428

    and

    date now September 6, 2006, 3:28:51 1157570931

    I having trouble making a countdown to the minutes and seconds left from the time the script is run to the countdown date. :( Not a live countdown.
  2. Is it possible to take away two dates two be left with the difference between them to be displayed as a time (e.g) 2006,12,06 12:00 take away 2006,15,06 12:30

    Would display the differnce as 3 days and 30 minutes?

    Thanks
  3. Is there a way of selecting all rows in a table after a certain date.

    The date format is 2006-07-22 11:41:17 and I want to select all rows since that date.

    So all rows since 2006-07-21 11:41:17

    Thanks
  4. Ok, It worked BUT the array now contains values like:

    15,cat
    2,dog
    10,donkey

    But when sorted using 'rsort' it is sorted by the first number rather than both number like '15'. The previous would sort like this:-

    2,dog
    15,cat
    10,donkey

    How can you sort an array numerically by both digits?
  5. I've hit a brick wall with the a script i'm making.

    Say I have an array with the values ball,doll,cat,cat,dog,cat,ball,cat.

    Is there a way to sort the array in order of the most common value inside the array.

    I know that array_count_values can count the number of a certain value in an array.
    So mayby I could run a loop to go through the array and count how many of each value are the array then put it into something with the value and the number of recurrences of the value then sort them that way?

    Is there a much quicker way? Any help appreciated
×
×
  • 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.