1. PHP / Говнокод #2523

    +175.2

    1. 01
    2. 02
    3. 03
    4. 04
    5. 05
    6. 06
    7. 07
    8. 08
    9. 09
    10. 10
    11. 11
    12. 12
    13. 13
    14. 14
    15. 15
    16. 16
    17. 17
    18. 18
    19. 19
    20. 20
    21. 21
    22. 22
    23. 23
    24. 24
    25. 25
    26. 26
    27. 27
    28. 28
    29. 29
    30. 30
    31. 31
    32. 32
    33. 33
    34. 34
    35. 35
    36. 36
    37. 37
    38. 38
    39. 39
    40. 40
    41. 41
    42. 42
    43. 43
    44. 44
    45. 45
    46. 46
    47. 47
    48. 48
    49. 49
    50. 50
    51. 51
    52. 52
    53. 53
    54. 54
    55. 55
    56. 56
    57. 57
    58. 58
    59. 59
    60. 60
    61. 61
    62. 62
    63. 63
    64. 64
    65. 65
    66. 66
    67. 67
    68. 68
    69. 69
    70. 70
    71. 71
    72. 72
    73. 73
    74. 74
    75. 75
    76. 76
    77. 77
    78. 78
    79. 79
    80. 80
    $arr = array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
      $result = $mysql->query("SELECT `upload` FROM `images` WHERE `upload` > '".(time()-60*60*24)."' AND `deleted` = '0' ORDER BY `upload` ASC");
      while($row = mysql_fetch_array($result))
      {
        switch($row['upload'])
        {
          case (($row['upload'] > (time()-60*60*24)) && ((time()-60*60*23) > $row['upload'])):
          $arr['23']++;
          break;
          case (($row['upload'] > (time()-60*60*23)) && ((time()-60*60*22) > $row['upload'])):
          $arr['22']++;
          break;
          case (($row['upload'] > (time()-60*60*22)) && ((time()-60*60*21) > $row['upload'])):
          $arr['21']++;
          break;
          case (($row['upload'] > (time()-60*60*21)) && ((time()-60*60*20) > $row['upload'])):
          $arr['20']++;
          break;
          case (($row['upload'] > (time()-60*60*20)) && ((time()-60*60*19) > $row['upload'])):
          $arr['19']++;
          break;
          case (($row['upload'] > (time()-60*60*19)) && ((time()-60*60*18) > $row['upload'])):
          $arr['18']++;
          break;
          case (($row['upload'] > (time()-60*60*18)) && ((time()-60*60*17) > $row['upload'])):
          $arr['17']++;
          break;
          case (($row['upload'] > (time()-60*60*17)) && ((time()-60*60*16) > $row['upload'])):
          $arr['16']++;
          break;
          case (($row['upload'] > (time()-60*60*16)) && ((time()-60*60*15) > $row['upload'])):
          $arr['15']++;
          break;
          case (($row['upload'] > (time()-60*60*15)) && ((time()-60*60*14) > $row['upload'])):
          $arr['14']++;
          break;
          case (($row['upload'] > (time()-60*60*14)) && ((time()-60*60*13) > $row['upload'])):
          $arr['13']++;
          break;
          case (($row['upload'] > (time()-60*60*13)) && ((time()-60*60*12) > $row['upload'])):
          $arr['12']++;
          break;
          case (($row['upload'] > (time()-60*60*12)) && ((time()-60*60*11) > $row['upload'])):
          $arr['11']++;
          break;
          case (($row['upload'] > (time()-60*60*11)) && ((time()-60*60*10) > $row['upload'])):
          $arr['10']++;
          break;
          case (($row['upload'] > (time()-60*60*10)) && ((time()-60*60*9) > $row['upload'])):
          $arr['9']++;
          break;
          case (($row['upload'] > (time()-60*60*9)) && ((time()-60*60*8) > $row['upload'])):
          $arr['8']++;
          break;
          case (($row['upload'] > (time()-60*60*8)) && ((time()-60*60*7) > $row['upload'])):
          $arr['7']++;
          break;
          case (($row['upload'] > (time()-60*60*7)) && ((time()-60*60*6) > $row['upload'])):
          $arr['6']++;
          break;
          case (($row['upload'] > (time()-60*60*6)) && ((time()-60*60*5) > $row['upload'])):
          $arr['5']++;
          break;
          case (($row['upload'] > (time()-60*60*5)) && ((time()-60*60*4) > $row['upload'])):
          $arr['4']++;
          break;
          case (($row['upload'] > (time()-60*60*4)) && ((time()-60*60*3) > $row['upload'])):
          $arr['3']++;
          break;
          case (($row['upload'] > (time()-60*60*3)) && ((time()-60*60*2) > $row['upload'])):
          $arr['2']++;
          break;
          case (($row['upload'] > (time()-60*60*2)) && ((time()-60*60*1) > $row['upload'])):
          $arr['1']++;
          break;
          case ($row['upload'] > (time()-60*60*1)):
          $arr['0']++;
          break;
        }
      }

    график :)

    Запостил: Bodia, 01 Февраля 2010

    Комментарии (10) RSS

    Добавить комментарий