코드 정리

This commit is contained in:
gnuboard
2013-01-09 11:48:04 +09:00
parent 0609936507
commit 6d575f6ca6

View File

@ -11,8 +11,7 @@ $tmp_sql = " select count(*) as cnt from {$g4['login_table']} where lo_ip = '{$_
$tmp_row = sql_fetch($tmp_sql);
//sql_query(" lock table $g4['login_table'] write ", false);
if ($tmp_row['cnt'])
{
if ($tmp_row['cnt']) {
$tmp_sql = " update {$g4['login_table']} set mb_id = '{$member['mb_id']}', lo_datetime = '{$g4['time_ymdhis']}', lo_location = '$lo_location', lo_url = '$lo_url' where lo_ip = '{$_SERVER['REMOTE_ADDR']}' ";
sql_query($tmp_sql, FALSE);
} else {