Код: Выделить всё
tb_user_data :
------------------------------------
| username | name | level | status |
------------------------------------
| abb | ab | 0 | 1 |
| abc | aa | 1 | 1 |
| aac | bb | 2 | 1 |
| acc | cc | 3 | 1 |
------------------------------------
< /code>
script select Data < /p>
$data["adm"] = $this->db
->where("level", "0")
->or_where("level", "3")
->where("status", "1")
->get('tb_user_data')
->result_array();
Подробнее здесь: https://stackoverflow.com/questions/488 ... n-equals-o
Мобильная версия