'{$fr_date}' and mu_datetime < '{$to_date}' and (mu_id > '5599' or mu_id < '5370') and (mu_id > '6576' or mu_id < '6369') and mb_id = '{$mb_id}'"); for ($j=0; $row=sql_fetch_array($log); $j++) { $log2 = sql_query ("select mu_id from g5_mmb_upload where mu_id < '{$row['mu_id']}' order by mu_id desc limit 0, 3"); for ($k=0; $row2=sql_fetch_array($log2); $k++) { $comment_log = sql_fetch("select mu_id, count(*) as cnt from g5_mmb_comment where mu_id = '{$row2['mu_id']}' and mb_id = '{$mb_id}'"); if($comment_log['cnt'] == '0') { if($reply_count[$reply_index]['mc_no_count'] == "") $reply_count[$reply_index]['mc_no_count'] = 0; if($reply_count[$reply_index]['mu_id'] != $row['mu_id']) { $reply_index++; $reply_count[$reply_index]['mu_id'] = $row['mu_id']; } $reply_count[$reply_index]['mc_no_count']++; } } } ?>

번 로그 (/3)