member_table의 가로간격을 어디서 조절하는지 궁금합니다. 정보
member_table의 가로간격을 어디서 조절하는지 궁금합니다.
본문
안녕하세요^^a
member.php라고 따로 페이지로 나와서 회원들의 리스트만 뽑는 부분인데요-
아무리 해도 member_table의 가로간격때문인지 줄들이 안맞고 다 튕겨나가서요..ㅜㅜ
밑의 소스처럼 html/business_head.html이랑 foot.html으로 나눠서 넣어보기도 하고
아예 그냥 일반 코딩html페이지에 함수만 넣어보고 이렇게도 해봤는데 가로가 안맞아서 테이블이 튕겨나가더라고요..(일반코딩페이지는 문제없는거 확실합니다.)
그래서 제가 보기엔 member_table의 간격을 어디선가 설정해주는게 문제일꺼 같은데
이걸 어떻게 해결하면 좋을지 가르침 부탁드려요 ㅠ.ㅠ)*
<?
include_once("./html/business_head.html");
if (!$member[mb_id]) {
alert("회원만 볼 수 있습니다.");
} else { //회원만 보게...
?>
<?
if ($mbrecommend) {
$profileRc = get_member("$mbrecommend");
}
echo "<img src=../act/member_img.gif width=167 height=34 border=0>";
echo "<table width=600 cellpadding=4 cellspacing=1 border=0 bgcolor=#bbbbbb>";
if ($mbrecommend == "") { $memberid = $member[mb_id]; } else { $memberid = $mbrecommend; }
$sql = " select
mb_id, mb_name, mb_email, mb_homepage, mb_open, mb_recommend from $g4[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)
{ echo "<tr><td height=60 bgcolor=#EBE8DF align=center>추천인이 없습니다. ㅠㅠ</td></tr>"; }
{
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 $g4[member_table] where mb_recommend = '$tmp_id' and mb_level >= '2'";
$rowRnum = sql_fetch($sqlRnum);
echo "<tr bgcolor=#EBE8DF align=center>";
echo "<td class='small'>$j";
echo "<td width=180 class='small'>$profile[mb_id]";
echo "<td><b>$profile[mb_name]</b>($profile[mb_nick])";
$sql2 = "select
mb_id, mb_name, mb_email, mb_homepage, mb_open, mb_recommend from $g4[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 "</table>";
}
} }
echo "</table>";
echo "</div>";
} //회원만 보게...
include_once("./html/confirm_foot.html");
?>
댓글 전체
새로 테이블틀을 만들어서 소스를 넣어주셔야 할듯..
눈태깅으로 수정했으니 정확하지 않습니다.
<?
include_once("./html/business_head.html");
if (!$member[mb_id]) {
alert("회원만 볼 수 있습니다.");
} else { //회원만 보게...
?> <?
if ($mbrecommend) {
$profileRc = get_member("$mbrecommend");
}
echo "<img src=../act/member_img.gif width=167 height=34 border=0>";
echo "<table width=600 cellpadding=4 cellspacing=1 border=0 bgcolor=#bbbbbb>";
if ($mbrecommend == "") { $memberid = $member[mb_id]; } else { $memberid = $mbrecommend; }
$sql = " select
mb_id, mb_name, mb_email, mb_homepage, mb_open, mb_recommend from $g4[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)
{ echo "<tr><td height=60 bgcolor=#EBE8DF align=center colspan=3>추천인이 없습니다. ㅠㅠ</td></tr>"; } // colspan=3 빠져있네요
{
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 $g4[member_table] where mb_recommend = '$tmp_id' and mb_level >= '2'";
$rowRnum = sql_fetch($sqlRnum);
echo "<tr bgcolor=#EBE8DF align=center>";
echo "<td class='small'>$j</td>"; // </td> 누락
echo "<td width=180 class='small'>$profile[mb_id]</td>"; //</td> 누락
echo "<td><b>$profile[mb_name]</b>($profile[mb_nick])</td>"; //</td> 누락
$sql2 = "select
mb_id, mb_name, mb_email, mb_homepage, mb_open, mb_recommend from $g4[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></table>"; //</tr> 누락
}
} }
// echo "</table>"; 필요없음
// echo "</div>"; 요것도
} //회원만 보게...
include_once("./html/confirm_foot.html");
?>