오늘생일자출력을 제로보드에서 옴겨왔습니다.. 정보
오늘생일자출력을 제로보드에서 옴겨왔습니다..본문
<?
if($daymode=="0"){
$que="select name, no, email, birth from zetyx_member_table where from_unixtime(birth,'%c')='$month' and level = 7 order by no desc limit 5";
}else{
$que="select name, no, email, birth from zetyx_member_table where from_unixtime(birth,'%c')='$month' and from_unixtime(birth,'%d')='$day' and level = 7 order by no desc limit 5";
}
$res= mysql_query($que,$connect);
$Total=mysql_num_rows($res);
for ($i=0 ; $i< $Total; $i++){ // 반복시작
mysql_data_seek($res,$i);
$row=mysql_fetch_array($res);
echo "<tr>
<td><img src='/images/bllet.gif' align='absmiddle' width='2' height='2' border='0'> <b><font color='#8640FB'>".substr2($row[name],0,6)."</font></b> 생일 축하합니다.</td>
<td>".date("m",$row[birth])."월".date("d",$row[birth])."일</td>
</tr>";
}
?>
그누보드에서도 작동하게하고싶은데 너무어렵네요.. 어떤식으로 수정하면될까요.. 조금만이래도 알려주세요...ㅠㅠ
if($daymode=="0"){
$que="select name, no, email, birth from zetyx_member_table where from_unixtime(birth,'%c')='$month' and level = 7 order by no desc limit 5";
}else{
$que="select name, no, email, birth from zetyx_member_table where from_unixtime(birth,'%c')='$month' and from_unixtime(birth,'%d')='$day' and level = 7 order by no desc limit 5";
}
$res= mysql_query($que,$connect);
$Total=mysql_num_rows($res);
for ($i=0 ; $i< $Total; $i++){ // 반복시작
mysql_data_seek($res,$i);
$row=mysql_fetch_array($res);
echo "<tr>
<td><img src='/images/bllet.gif' align='absmiddle' width='2' height='2' border='0'> <b><font color='#8640FB'>".substr2($row[name],0,6)."</font></b> 생일 축하합니다.</td>
<td>".date("m",$row[birth])."월".date("d",$row[birth])."일</td>
</tr>";
}
?>
그누보드에서도 작동하게하고싶은데 너무어렵네요.. 어떤식으로 수정하면될까요.. 조금만이래도 알려주세요...ㅠㅠ
댓글 전체
그누에서 이미 생일자 출력 스킨이 있습니다~
http://sir.co.kr/bbs/board.php?bo_table=g4_skin&sca=&sfl=wr_subject&stx=%BB%FD%C0%CF&sop=and&x=18&y=10
참고해 보셔요~
http://sir.co.kr/bbs/board.php?bo_table=g4_skin&sca=&sfl=wr_subject&stx=%BB%FD%C0%CF&sop=and&x=18&y=10
참고해 보셔요~