|
|
|
14년 전
|
조회 1,164
|
|
|
|
14년 전
|
조회 1,153
|
|
|
|
14년 전
|
조회 2,160
|
|
|
|
14년 전
|
조회 1,184
|
|
|
|
14년 전
|
조회 1,389
|
|
|
|
14년 전
|
조회 1,725
|
|
|
|
14년 전
|
조회 1,250
|
|
|
|
14년 전
|
조회 1,821
|
|
|
|
14년 전
|
조회 2,185
|
|
|
|
14년 전
|
조회 1,993
|
|
|
|
14년 전
|
조회 2,087
|
|
|
|
14년 전
|
조회 1,868
|
|
|
|
14년 전
|
조회 1,250
|
|
|
|
14년 전
|
조회 1,251
|
|
|
|
14년 전
|
조회 1,319
|
|
|
|
14년 전
|
조회 3,471
|
|
|
|
14년 전
|
조회 1,247
|
|
|
|
14년 전
|
조회 1,268
|
|
|
|
14년 전
|
조회 1,250
|
|
|
|
14년 전
|
조회 2,028
|
|
|
|
14년 전
|
조회 1,324
|
|
|
|
14년 전
|
조회 1,164
|
|
|
|
14년 전
|
조회 2,027
|
|
|
|
14년 전
|
조회 1,435
|
|
|
|
14년 전
|
조회 1,831
|
|
|
관리자
|
14년 전
|
조회 2,693
|
|
|
관리자
|
14년 전
|
조회 2,302
|
|
|
|
14년 전
|
조회 2,072
|
|
|
|
14년 전
|
조회 1,533
|
|
|
|
14년 전
|
조회 1,707
|
댓글 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] => 기수 )
처럼 들어간다는점이네요 배열안에서 중복은 들어가지만 이부분은 문제가 되지 않는 부분이라!!!