- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
- 25
- 26
- 27
- 28
- 29
- 30
- 31
- 32
- 33
- 34
- 35
- 36
- 37
- 38
- 39
- 40
- 41
- 42
- 43
- 44
- 45
- 46
- 47
- 48
- 49
- 50
- 51
- 52
- 53
- 54
- 55
- 56
- 57
- 58
- 59
- 60
- 61
- 62
- 63
- 64
- 65
- 66
- 67
- 68
- 69
- 70
- 71
- 72
- 73
- 74
- 75
- 76
- 77
- 78
- 79
- 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;
}
}
Dreyk 02.02.2010 00:09 # 0
nil 02.02.2010 09:23 # +1
(По мотивам 2449)
mrbig66 02.02.2010 16:11 # 0
danxill 04.02.2010 06:31 # 0
guest 04.02.2010 10:53 # 0
nil 04.02.2010 11:26 # 0
DanxilLs 14.02.2010 06:00 # 0
nil 04.02.2010 11:27 # 0
guest8 11.07.2020 03:40 # −999
guest8 11.07.2020 03:42 # −999