| 제목 | Mysql 쿼리 관련 질문입니다. | ||
|---|---|---|---|
| 글쓴이 | 꾸숑 | 작성시각 | 2013/04/21 02:32:12 |
|
|
|||
|
Mysql 쿼리 관련 질문입니다. $board_name = $row['board_name']; |
|||
| 태그 | mysql | ||
| 첨부파일 |
aaa.tar (30.0 KB) |
||
| 다음글 | 이미지 업로드 파일을 어떻게 처리 할까요..? (3) | ||
| 이전글 | .htaccess 설정관련 질문 드립니다. (4) | ||
|
risa
/
2013/04/21 13:11:31 /
추천
0
|
|
꾸숑
/
2013/04/21 17:26:22 /
추천
0
답변 감사합니다.
테스트 해보고 보고 드릴게요^^ |
|
꾸숑
/
2013/04/21 22:36:05 /
추천
0
risa// $data['snd_number'] = $this->session->userdata('mobile');//보내는사람 번호(답글작성자)
|
요컨데 요약 하면
where 절을 여러개 넣고 싶으시다는것 같네요.
$this->db->where('num', $num); $this->db->where('gnum', '10101'); $this->db->where('depth', 'A'); $query = $this->db->get($this->id); $row['a'] = $query->row_array(); //원글 $this->db->where('num', $num); $this->db->where('gnum', '10101'); $this->db->where('depth', 'AB'); $query = $this->db->get($this->id); $row['ab'] = $query->row_array(); //답글