묻고답하기
page_full_width" class="col-xs-12" |cond="$__Context->page_full_width">
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource
in /home/hosting_users/binhaace/www/member/func.php on line 304
이런 에러가 나요,
http://binhaace.cafe24.com/member/join.php
이게 가입 페이지구요..
304번 라인에는
$check=mysql_fetch_array(mysql_query("select * from connect where ip='$ip'"));
이런게 있습니다..
이건 304번 근처 라인입니다
292 //-----------------------------------------------------------------------------------------
293 // Session Start
294 //-----------------------------------------------------------------------------------------
295 session_save_path("/home/hosting_users/binhaace/www/mrjh_board/data/session");
296 session_start();
297
298 //-----------------------------------------------------------------------------------------
299 // Now Connector
300 //-----------------------------------------------------------------------------------------
301 connectDB();
302 $ip=$REMOTE_ADDR;
303 $nowTime=time();
304 $check=mysql_fetch_array(mysql_query("select * from connect where ip='$ip'"));
305 if(!$check[no])
306 mysql_query("insert into connect (ip,connect_time) values ('$ip','$nowTime')");
307 mysql_query("delete from connect where connect_time < $now - 180");
in /home/hosting_users/binhaace/www/member/func.php on line 304
이런 에러가 나요,
http://binhaace.cafe24.com/member/join.php
이게 가입 페이지구요..
304번 라인에는
$check=mysql_fetch_array(mysql_query("select * from connect where ip='$ip'"));
이런게 있습니다..
이건 304번 근처 라인입니다
292 //-----------------------------------------------------------------------------------------
293 // Session Start
294 //-----------------------------------------------------------------------------------------
295 session_save_path("/home/hosting_users/binhaace/www/mrjh_board/data/session");
296 session_start();
297
298 //-----------------------------------------------------------------------------------------
299 // Now Connector
300 //-----------------------------------------------------------------------------------------
301 connectDB();
302 $ip=$REMOTE_ADDR;
303 $nowTime=time();
304 $check=mysql_fetch_array(mysql_query("select * from connect where ip='$ip'"));
305 if(!$check[no])
306 mysql_query("insert into connect (ip,connect_time) values ('$ip','$nowTime')");
307 mysql_query("delete from connect where connect_time < $now - 180");
디비연결부분을 다시 검토해보시길