M

오늘생일자출력을 제로보드에서 옴겨왔습니다..

<?
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>";
}
?>

그누보드에서도 작동하게하고싶은데 너무어렵네요.. 어떤식으로 수정하면될까요.. 조금만이래도 알려주세요...ㅠㅠ
|

댓글 1개

댓글을 작성하시려면 로그인이 필요합니다.

그누4 질문답변

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

+
제목 글쓴이 날짜 조회
15년 전 조회 1,664
15년 전 조회 1,553
15년 전 조회 1,581
15년 전 조회 1,552
15년 전 조회 3,007
15년 전 조회 1,577
15년 전 조회 1,585
15년 전 조회 1,558
15년 전 조회 1,541
15년 전 조회 1,481
15년 전 조회 1,698
15년 전 조회 1,629
15년 전 조회 1,436
15년 전 조회 1,566
15년 전 조회 1,630
15년 전 조회 1,730
15년 전 조회 1,590
15년 전 조회 1,860
15년 전 조회 1,764
15년 전 조회 1,535