특정 테이블 한번 글쓰면 12시간이후에 글작성가능. 채택완료
거제미남
9년 전
조회 4,019
if($bo_table=="HD"){
if(!$is_admin){
$sql = "select * from $write_table where mb_id = '$member[mb_id]' and wr_is_comment = '0' order by wr_id desc limit 0,1";
$row = sql_fetch($sql);
$tondate = time($row["wr_datetime"]) + $config[cf_delay_sec];
$sql2 = " select count(*) as cnt from $write_table where mb_id = '$member[mb_id]' and wr_is_comment = '0' and UNIX_TIMESTAMP(wr_datetime) < $tondate";
$count = sql_fetch($sql2) or die(mysql_error());
if ($count["cnt"] > 0) {
alert("12시간 뒤에 다시 작성할수있습니다.");
}
어떤분이 해주셨긴한데 , 어디서 시간을 설정을 해야하나요 ?
도와주실분있나요 네이트온 legendlh@네이트.com 로친추주세요~
댓글을 작성하려면 로그인이 필요합니다.
답변 1개
답변을 작성하려면 로그인이 필요합니다.
로그인