생일자 명단나오는거 질문이요.... > 그누4 질문답변

그누4 질문답변

그누보드4 관련 질문은 QA 로 이전됩니다. QA 그누보드4 바로가기
기존 게시물은 열람만 가능합니다.

생일자 명단나오는거 질문이요.... 정보

생일자 명단나오는거 질문이요....

본문

여기 뒤져보니깐 G3용을 G4용으로 바꿔서 올려놓은게 있는데...
각 커뮤니티 별로 나타내려하는데 중등부,고등부의 각 게시판에 생일자 명단나오게 해야되는데..
지금 있는거는 전체 회원으로 나와서 문제에요..
어떻게 해결할까요??

아래 소스입니다...
<?
include_once("./_common.php");
?>

<html>
<head></head>

<body bgcolor="white">


<?

$today = getdate();
$b_mon = $today['mon'];
$b_day = $today['mday'];
$b_year = $today['year'];


$sql = "select * from $g4[member_table] order by mb_birth";
$result = sql_query($sql);

echo "<table width=147 border=0 cellpadding=0 cellspacing=0><tr>";
echo "<td align=center valign=bottom background='./birth/images/top.gif' border=0 width=147 height=28>▒&nbsp;<b>$b_year 년 $b_mon 월</b>&nbsp;▒</td></tr>";
// echo "<tr><td height=2 background='./birth/images/body2.gif' border=0 width=147 height=2></td></tr>";
// echo "<tr><td height=1 background='./birth/images/underline.gif' border=0 width=147 height=1></td></tr>";
// echo "<tr><td height=2 background='./birth/images/body2.gif' border=0 width=147 height=2></td></tr>";
echo "<tr><td height=5 background='./birth/images/body2.gif' border=0 width=147 height=2></td></tr>";
echo "<tr><td background='./birth/images/body.gif' border=0 width=147 height=20>";
echo "<marquee direction=up scrolldelay=400 loop=true height=120>";


for ($i=0; $row=mysql_fetch_array($result); $i++) {


$birth_month = substr("$row[mb_birth]",-4,2);
$birth_day = substr("$row[mb_birth]",-2,2);

if ($birth_month == $b_mon) {
echo "<table border=0 cellpadding=0 cellspacing=0><tr>";
echo "<td width=10></td>";
echo "<td width=8 align=center valign=middle><img src='./birth/images/today_on.gif' border=0></td>";
echo "<td width=80 title=$row[mb_id]>&nbsp;$row[mb_name]&nbsp;님</td>";
echo "<td>&nbsp;$birth_day 일</td>";
echo "</tr></table>";
}

}

echo "</marquee></td></tr>";
echo "<tr><td height=5 background='./birth/images/body2.gif' border=0 width=147 height=2></td></tr>";
echo "<tr><td align=center background='./birth/images/bottom.gif' border=0 width=147 height=20>";
echo "<font color='#F07F0E'>생일축하합니다.</font>";
echo "</td></tr></table>";

?>

</body>

</html>

댓글 전체

전체 66,554 |RSS
그누4 질문답변 내용 검색

회원로그인

(주)에스아이알소프트 / 대표:홍석명 / (06211) 서울특별시 강남구 역삼동 707-34 한신인터밸리24 서관 1402호 / E-Mail: admin@sir.kr
사업자등록번호: 217-81-36347 / 통신판매업신고번호:2014-서울강남-02098호 / 개인정보보호책임자:김민섭(minsup@sir.kr)
© SIRSOFT