|
|
|
14년 전
|
조회 1,184
|
|
|
|
14년 전
|
조회 1,169
|
|
|
|
14년 전
|
조회 2,179
|
|
|
|
14년 전
|
조회 1,202
|
|
|
|
14년 전
|
조회 1,405
|
|
|
|
14년 전
|
조회 1,742
|
|
|
|
14년 전
|
조회 1,269
|
|
|
|
14년 전
|
조회 1,842
|
|
|
|
14년 전
|
조회 2,200
|
|
|
|
14년 전
|
조회 2,010
|
|
|
|
14년 전
|
조회 2,102
|
|
|
|
14년 전
|
조회 1,885
|
|
|
|
14년 전
|
조회 1,268
|
|
|
|
14년 전
|
조회 1,264
|
|
|
|
14년 전
|
조회 1,333
|
|
|
|
14년 전
|
조회 3,497
|
|
|
|
14년 전
|
조회 1,269
|
|
|
|
14년 전
|
조회 1,292
|
|
|
|
14년 전
|
조회 1,267
|
|
|
|
14년 전
|
조회 2,045
|
|
|
|
14년 전
|
조회 1,341
|
|
|
|
14년 전
|
조회 1,182
|
|
|
|
14년 전
|
조회 2,045
|
|
|
|
14년 전
|
조회 1,447
|
|
|
|
14년 전
|
조회 1,843
|
|
|
관리자
|
14년 전
|
조회 2,707
|
|
|
관리자
|
14년 전
|
조회 2,315
|
|
|
|
14년 전
|
조회 2,088
|
|
|
|
14년 전
|
조회 1,557
|
|
|
|
14년 전
|
조회 1,723
|
댓글 12개
머가 중복된 값이라는건지 그걸 모르겟네요
쿼리문만 수정하시면될 것같은데
$total = mysql_result(mysql_query("select sum(fi_money) from ig_fund_input as a, mir_member as b where a.mno=b.no and name='{$data[name]}' and ( fi_type='CMS' or fi_type='기탁')"),0);
출력한 데이터에서 이름이 똑같이 들어간 데이터가 있다면 1개만 출력하는 조건이 필요합니다 ㅠㅠ
맞게 만든건지 모르겠네요. 제가 왕초보인걸 감안하고 보세요... ㅎㅎ
해놓고보니 group by 랑 distinct 다른게 order 만 다른 거 같네요... 아닌가 ㅎㅎ;;
group by 가 where전에 와야지요?
where 앞에 ig_cms as a, mir_member as b 이걸써야해서
ig_cms as a, mir_member as b group by name을 했더니 오류가 나더라구요 ㅎㅎ
무튼 제가 mysql+php에 엄청약해서.. (별개지만... 엑셀도..)
$query = "select distinct name from ig_cms as a, mir_member as b where a.mno=b.no and $db_oder order by name asc limit $from_record, $pages_num";
이렇게 하니까 되네요...
기술기부 감사합니다.!!
Array ( [0] => 이름 [name] => 이름 [1] => 기수 [i_su] => 기수 )
처럼 들어간다는점이네요 배열안에서 중복은 들어가지만 이부분은 문제가 되지 않는 부분이라!!!