회원아이디 넘어오지 않을 경우는 쿼리 실행하지 않음
This commit is contained in:
1 parent
70d0e5b96e
commit
f32df6be5b
1 file changed
+4
@@ -28,6 +28,10 @@ function count_mb_id($reg_mb_id)
|
||||
function exist_mb_id($reg_mb_id)
|
||||
{
|
||||
global $g4;
|
||||
|
||||
$reg_mb_id = trim($reg_mb_id);
|
||||
if ($reg_mb_id == "") return "";
|
||||
|
||||
$sql = " select count(*) as cnt from `{$g4['member_table']}` where mb_id = '$reg_mb_id' ";
|
||||
$row = sql_fetch($sql);
|
||||
if ($row['cnt'])
|
||||
|
||||
Reference in new issue
Block a user