// 회원의 최대 클럽 생성수 체크
if ($is_admin != "super") {
$limits = mysql_fetch_array(mysql_query(" select count(*) from $nc[tbl_club] where cb_manager = '$member[mb_id]' "));
if ($nc[nf_limits] && $limits[0] >= $nc[nf_limits]) {
alert("한 회원이 생성할수 있는 클럽수는 $nc[nf_limits] 개 까지 입니다.");
}
}
// 회원의 최대 클럽 생성수 첵
if ($is_admin != "super") {
$limits = sql_total($nc[tbl_club], "cb_manager", $member[mb_id]);
if ($nc[nf_limits] && $limits >= $nc[nf_limits]) {
alert("한 회원이 생성할수 있는 클럽수는 $nc[nf_limits] 개 까지 입니다.");
}
}
댓글 2개
// 회원의 최대 클럽 생성수 체크
if ($is_admin != "super") {
$limits = mysql_fetch_array(mysql_query(" select count(*) from $nc[tbl_club] where cb_manager = '$member[mb_id]' "));
if ($nc[nf_limits] && $limits[0] >= $nc[nf_limits]) {
alert("한 회원이 생성할수 있는 클럽수는 $nc[nf_limits] 개 까지 입니다.");
}
}
// 회원의 최대 클럽 생성수 첵
if ($is_admin != "super") {
$limits = sql_total($nc[tbl_club], "cb_manager", $member[mb_id]);
if ($nc[nf_limits] && $limits >= $nc[nf_limits]) {
alert("한 회원이 생성할수 있는 클럽수는 $nc[nf_limits] 개 까지 입니다.");
}
}