if문 쓰는방법 문의 > 그누4 질문답변

그누4 질문답변

그누보드4 관련 질문은 QA 로 이전됩니다. QA 그누보드4 바로가기
기존 게시물은 열람만 가능합니다.

if문 쓰는방법 문의 정보

if문 쓰는방법 문의

본문

팝업창뜰때 음성파일을 tmpstr[?] ?에 내용이 0개 이상일경우  Sound.play를 다르게적용하고싶은데요
현재는 팝업이뜨면 Sound.play(g4_path + "/js/recv_mail.mp3"); 만실행중이거든요

re.html에 내용이 잇을경우 Sound.play(g4_path + "/js/re.mp3"); 실행
ex.html에 내용이 잇을경우 Sound.play(g4_path + "/js/exmp3"); 실행
free.html에 내용이 잇을경우 Sound.play(g4_path + "/js/free.mp3"); 실행
one.html에 내용이 잇을경우 Sound.play(g4_path + "/js/one.mp3"); 실행
이런게실행시키는 방법좀 부탁드립니다.




========================================================================

function newArticleCheck() {
$j.post( g4_path+"/ajax.newUpdateCheck.php",
function(data){
tmpstr = data.split("|");
var divToday  = $j('#divToday');
var re = $j(".re_value");
var ex = $j(".ex_value");
var free = $j(".free_value");
var one = $j(".one_value");

if(tmpstr[0] != 0 || tmpstr[1] != 0 || tmpstr[2] != 0 || tmpstr[3] != 0){

divToday.show();

re.html("<font color=red><b>" + tmpstr[1] + "</b></font>");

ex.html("<font color=red><b>" + tmpstr[0] + "</b></font>");

free.html("<font color=red><b>" + tmpstr[2] + "</b></font>");

one.html("<font color=red><b>" + tmpstr[3] + "</b></font>");

Sound.play(g4_path + "/js/recv_mail.mp3");
}else{
divToday.hide();
}
});
}

( select a.* , ( select sum(co_count) as co_count from g4_qa_choose where mb_id=a.mb_id and bo_table = 'g4_qa' ) as q_co_count from `g4_write_g4_qa` a where wr_id = '-1' and wr_id != '2008' ) union ( select a.* , ( select sum(co_count) as co_count from g4_qa_choose where mb_id=a.mb_id and bo_table = 'g4_qa' ) as q_co_count from `g4_write_g4_qa` a where wr_parent = '281553' and wr_8 != '' and wr_is_comment = 1 and CONVERT(wr_7, UNSIGNED) >= 5 group by wr_content having max(wr_7) order by CONVERT(wr_7, UNSIGNED) desc limit 3 )

1055 : Expression #1 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'sir.a.wr_id' which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by

error file : /15sir/bbs/board.php