1. Список говнокодов пользователя asdozzz

    Всего: 1

  2. PHP / Говнокод #16196

    +154

    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
    $this->db->from("admin_sidebar");
            $this->db->where("folder", 1);
            $this->db->order_by("sort", "asc");
            $query = $this->db->get();
            $data[0] = $query->result();
            $this->db->from("admin_sidebar");
            $this->db->where("folder", 2);
            $this->db->order_by("sort", "asc");
            $query = $this->db->get();
            $data[1] = $query->result();
            $this->db->from("admin_sidebar");
            $this->db->where("folder", 3);
            $this->db->order_by("sort", "asc");
            $query = $this->db->get();
            $data[2] = $query->result();
            $this->db->from("admin_sidebar");
            $this->db->where("folder", 4);
            $this->db->order_by("sort", "asc");
            $query = $this->db->get();
            $data[3] = $query->result();
            $this->db->from("admin_sidebar");
            $this->db->where("folder", 5);
            $this->db->order_by("sort", "asc");
            $query = $this->db->get();
            $data[4] = $query->result();

    asdozzz, 19 Июня 2014

    Комментарии (2)