http://sir.kr/g5_tip/2453?sfl=wr_subject%7C%7Cwr_content&stx=%EC%B6%94%EC%B2%9C%EC%9D%B8
<?echo "<div style='margin:0 0 10 0;'>";echo "<a href='$g5[path]/member_group.php'><b>:: 내 그룹</b></a>";if ($mbrecommend) {$profileRc = get_member("$mbrecommend");echo " >> <b>$profileRc[mb_name]</b>($profileRc[mb_nick], $profileRc[mb_id])님의 하위그룹입니다."; }echo "<p>※ <span class='Rnum'>(숫자)</span>를 클릭하면 하위그룹으로 이동합니다. (현재 페이지당 2대까지 보임)";echo "<table width=100% cellpadding=2 cellspacing=1 border=0 bgcolor=#bbbbbb>";echo "<colgroup><colgroup><colgroup><colgroup><colgroup><colgroup width=50><colgroup width=50>";echo "<tr bgcolor=#dddddd align=center><td width=10><td class='small'>아이디<td class='small'>이름<td><td class='small'>카드번호";echo "<td class='small'>최종접속<td class='small'>가입날짜";if ($mbrecommend == "") { $memberid = $member[mb_id]; } else { $memberid = $mbrecommend; }$sql = " selectmb_id, mb_name, mb_email, mb_homepage, mb_open, mb_recommend from $g5[member_table]where mb_recommend = '$memberid' and mb_level >= '2' order by mb_datetime desc ";$result = sql_query($sql);if(@mysql_num_rows($result)>0) {for ($i=0,$j=1; $row=mysql_fetch_array($result); $i++,$j++) {$tmp_id = $row[mb_id];$profile = get_member("$tmp_id");$sqlRnum = "select count(*) as Rnum from $g5[member_table] where mb_recommend = '$tmp_id' and mb_level >= '2'";$rowRnum = sql_fetch($sqlRnum);echo "<tr bgcolor=#eeeeee align=center>";echo "<td class='small'>$j";echo "<td class='small'>$profile[mb_id]";echo "<td><b>$profile[mb_name]</b>($profile[mb_nick])";if ($profile[mb_level] >= 4) { echo "<span style='color:red;'>★</span>"; }echo "<td><a href='$g5[path]/member_group.php?mbrecommend=$profile[mb_id]'><span class='Rnum'>($rowRnum[Rnum])</span></a>";echo "<td class='small'>$profile[mb_1]";echo "<td class='small'>$profile[mb_today_login]";echo "<td class='small'>$profile[mb_datetime]";$sql2 = "selectmb_id, mb_name, mb_email, mb_homepage, mb_open, mb_recommend from $g5[member_table]where mb_recommend = '$tmp_id' and mb_level >= '2' order by mb_datetime desc ";$result2 = sql_query($sql2);if(@mysql_num_rows($result2)>0) {echo "<tr><td colspan=10 style='padding:5 5 10 5;background:#ffffff;'>";echo "<table width=98% cellpadding=2 cellspacing=1 border=0 bgcolor=#cccccc align=right>";echo "<colgroup><colgroup><colgroup><colgroup><colgroup><colgroup width=80><colgroup width=80>";echo "<tr bgcolor=#dddddd align=center><td width=10><td class='small'>아이디<td class='small'>이름<td><td class='small'>카드번호";echo "<td class='small'>최종접속<td class='small'>가입날짜";for ($k=0,$l=1; $row2=mysql_fetch_array($result2); $k++,$l++) {$tmp2_id = $row2[mb_id];$profile2 = get_member("$tmp2_id");$sqlRnum2 = "select count(*) as Rnum2 from $g5[member_table] where mb_recommend = '$tmp2_id' and mb_level >= '2'";$rowRnum2 = sql_fetch($sqlRnum2);echo "<tr bgcolor=#eeeeee align=center>";echo "<td class='small'>$l";echo "<td class='small'>$profile2[mb_id]";echo "<td><b>$profile2[mb_name]</b>($profile2[mb_nick])";if ($profile2[mb_level] >= 4) { echo "<span style='color:red;'>★</span>"; }echo "<td><a href='$g5[path]/member_group.php?mbrecommend=$profile2[mb_id]'><span class='Rnum'>($rowRnum2[Rnum2])</span></a>";echo "<td class='small'>$profile2[mb_1]";echo "<td class='small'>$profile2[mb_today_login]";echo "<td class='small'>$profile2[mb_datetime]";}echo "</table>";}} }echo "</table>";echo "</div>";} //회원만 보게... include_once("./_tail.php");?>
위 내용대로 추천인 조회 페이지를 만들어서 예전 그누보드 5.1 버전에서 사용 중이었는데요.
영카트5 최신 버전으로 아예 사이트를 새로 만들어서 테마 적용하고 이 추천인 페이지를 넣으려했더니 데이터 자체를 못 불러오는 것 같아요.
데이터는 다 이전해놔서 관리자 모드에서는 추천인 다 보이도록 수정했는데
회원이 볼 수 있게 하는 이 페이지만 안 되네요 ㅠ
예전 버전 홈페이지에서는 정상적으로 작동되구요.
이리저리 수정을 해봐도 안 되어서 조언 구해봅니다 ㅠㅠ
힌트라도 주시면 감사하겠습니다.
답변 1개 / 댓글 1개
mysql_fetch_array
mysql_num_rows
일단 여기를 이렇게..
sql_fetch_array
sql_num_rows
답변에 대한 댓글 1개
답변을 작성하려면 로그인이 필요합니다.