대류님의 스킨자료 잘 사용하고 있습니다. 감사합니다.
대류님께서 제로보드 사이트에 2004-01-17 올린 [제로카운터 설치하기] 후 아래와 같은 오류가 나옵니다. 어디에서 잘못한 것이지?
같은 소스를 다른 사이트에선 성공하였는데....
【blue】【b】Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/paichaihakdang/zerocount/zerocounter.php3 on line 15
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/paichaihakdang/zerocount/zerocounter.php3 on line 22
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/paichaihakdang/zerocount/zerocounter.php3 on line 40
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/paichaihakdang/zerocount/zerocounter.php3 on line 52
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/paichaihakdang/zerocount/zerocounter.php3 on line 57
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/paichaihakdang/zerocount/zerocounter.php3 on line 62
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/paichaihakdang/zerocount/zerocounter.php3 on line 67
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/paichaihakdang/zerocount/zerocounter.php3 on line 72【/b】【/blue】
-------------------------------------------------------------
zerocount.php3 에서 오류라고 나타나는 line의 내용입니다.
line 15 --> 【red】$check=mysql_fetch_array(mysql_query("select count(*) from counter_main where date='$today'",$connect));【/red】
line 22 --> 【red】$check=mysql_fetch_array(mysql_query("select count(*) from counter_ip where date>=$today and date<$tomorrow and ip='$user_ip'",$connect));【/red】
line 40 --> 【red】$check2=mysql_fetch_array(mysql_query("select count(*) from counter_referer where date=$today and referer='$referer'",$connect));【/red】
line 52 --> 【red】$total=mysql_fetch_array(mysql_query("select unique_counter, pageview from counter_main where no=1", $connect));【/red】
line 57 --> 【red】$detail=mysql_fetch_Array(mysql_query("select unique_counter, pageview from counter_main where date='$today'", $connect));【/red】
line 62 --> 【red】$detail=mysql_fetch_Array(mysql_query("select unique_counter, pageview from counter_main where date='$yesterday'", $connect));【/red】
line 67 --> 【red】$detail=mysql_fetch_Array(mysql_query("select max(unique_counter), max(pageview) from counter_main where no>1", $connect));【/red】
line 72 --> 【red】$detail=mysql_fetch_Array(mysql_query("select min(unique_counter), min(pageview) from counter_main where no>1 and date<$today", $connect));【/red】
대류님께서 제로보드 사이트에 2004-01-17 올린 [제로카운터 설치하기] 후 아래와 같은 오류가 나옵니다. 어디에서 잘못한 것이지?
같은 소스를 다른 사이트에선 성공하였는데....
【blue】【b】Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/paichaihakdang/zerocount/zerocounter.php3 on line 15
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/paichaihakdang/zerocount/zerocounter.php3 on line 22
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/paichaihakdang/zerocount/zerocounter.php3 on line 40
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/paichaihakdang/zerocount/zerocounter.php3 on line 52
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/paichaihakdang/zerocount/zerocounter.php3 on line 57
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/paichaihakdang/zerocount/zerocounter.php3 on line 62
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/paichaihakdang/zerocount/zerocounter.php3 on line 67
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/paichaihakdang/zerocount/zerocounter.php3 on line 72【/b】【/blue】
-------------------------------------------------------------
zerocount.php3 에서 오류라고 나타나는 line의 내용입니다.
line 15 --> 【red】$check=mysql_fetch_array(mysql_query("select count(*) from counter_main where date='$today'",$connect));【/red】
line 22 --> 【red】$check=mysql_fetch_array(mysql_query("select count(*) from counter_ip where date>=$today and date<$tomorrow and ip='$user_ip'",$connect));【/red】
line 40 --> 【red】$check2=mysql_fetch_array(mysql_query("select count(*) from counter_referer where date=$today and referer='$referer'",$connect));【/red】
line 52 --> 【red】$total=mysql_fetch_array(mysql_query("select unique_counter, pageview from counter_main where no=1", $connect));【/red】
line 57 --> 【red】$detail=mysql_fetch_Array(mysql_query("select unique_counter, pageview from counter_main where date='$today'", $connect));【/red】
line 62 --> 【red】$detail=mysql_fetch_Array(mysql_query("select unique_counter, pageview from counter_main where date='$yesterday'", $connect));【/red】
line 67 --> 【red】$detail=mysql_fetch_Array(mysql_query("select max(unique_counter), max(pageview) from counter_main where no>1", $connect));【/red】
line 72 --> 【red】$detail=mysql_fetch_Array(mysql_query("select min(unique_counter), min(pageview) from counter_main where no>1 and date<$today", $connect));【/red】
강좌를 보고 하나하나 차근차근 따라하면 잘 됩니다.
잘 살펴보세요