Jump to content

canabatz

Members
  • Posts

    116
  • Joined

  • Last visited

About canabatz

  • Birthday 09/24/1971

Contact Methods

  • Website URL
    http://www.world-status.com

Profile Information

  • Gender
    Male
  • Location
    israel

canabatz's Achievements

Member

Member (2/5)

0

Reputation

  1. Thanks a lot , exactly what i needed
  2. im getting the time from other server and the date dosent change there it's showing same date but times after midnight also. what i need is programaticly change the date myself with a script. thanks
  3. hi all i have an array that hold times as follow(i define the date): 2016-02-24 16:55 2016-02-24 17:55 2016-02-24 19:55 2016-02-24 23:55 2016-02-24 01:34 -<----here is my problem , i want the date to change if it's after midnight. it shuold be like that automaticly: 2016-02-25 01:34 somthing like that: $day="2016-02-26"; if(strtotime(01:34) > strtotime("23:59")) { $day = date('Y-m-d',strtotime($day."+1 days")); } else { //KEEP CURRENT DATE } the time im geting from a web site with file_get_contents and there the date do not change if after midnight so i got to do it my self any help ? thanks
  4. thanks Barand, works perfect!!
  5. i changed it to: $results = array( array('name'=>'carl', 'good'=>4, 'time'=>14), array('name'=>'john', 'good'=>4, 'time'=>25), array('name'=>'benny', 'good'=>5, 'time'=>21) ); usort($results, 'resultSort'); echo $results[0]['name']; // benny
  6. PHP Parse error: syntax error, unexpected '[' in /home5/bingoga1/public_html/shiluvyco/trivika/calct.php on line 5
  7. the sorting is not workig
  8. hi all, im trying to get best results from this list name--------good---------best time carl------------1 ---------14 john------------2 ---------25 benny----------2 ---------21 good represent right answer and bet time represent speed. i need to find who answer most and the least time. so the best from the example is 2-21 i have put the results in array and found the max(good) and the min(best time) how can i found that benny won in table example, he had 2 good and is best time is better then john, carl is out because he have only 1 good. thanks
×
×
  • 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.