- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
if ($_POST["cc"]["status"]==2 && (int)current (mysql_fetch_row (mysql_query ('SELECT COUNT(*) FROM test_vc_log LEFT JOIN test_cc ON test_cc.uid=test_vc_log.cc_id WHERE test_vc_log.event_id=2 AND test_cc.user_id='. $user->data["uid"]. ' AND test_vc_log.created>"'. date ("Y-m-d H:i:s", max (
strtotime (is_in (mysql_fetch_row (mysql_query ('SELECT test_vc_log.created FROM test_vc_log LEFT JOIN test_cc ON test_cc.uid=test_vc_log.cc_id WHERE test_vc_log.event_id=1 AND test_cc.user_id='. $user->data["uid"]. ' ORDER BY created DESC LIMIT 0,1')), 0)),
strtotime (is_in (mysql_fetch_row (mysql_query ('SELECT created FROM test_rating WHERE event_type=18 AND user_id='. $user->data["uid"]. ' ORDER BY created DESC LIMIT 0,1')), 0)),
strtotime ("2009-02-06")
)). '"'))) > 2){
....
}
Я бы этого любителя писать всю программу в if-ах... Да еще и с такими запросами... Урод.
IHateBidloKod 24.12.2009 19:35 # +2
Johnny 25.12.2009 21:49 # +2
danxill 16.01.2010 16:03 # +1
3oJIoTou_xyu 07.04.2021 09:18 # 0
KoWe4Ka_l7porpaMMep 07.04.2021 12:59 # +1
PolinaAksenova 07.04.2021 13:27 # +1
guestinxo 07.04.2021 13:29 # 0
guestinxo 07.04.2021 14:11 # 0