회원아이디 넘어오지 않을 경우는 쿼리 실행하지 않음

This commit is contained in:
gnuboard
2013-04-30 11:52:43 +09:00
parent 70d0e5b96e
commit f32df6be5b

View File

@ -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'])