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 관련 질문은 QA 로 이전됩니다. QA 그누보드4 바로가기 기존 게시물은 열람만 가능합니다.

+
제목 글쓴이 날짜 조회
10-06-07 조회 1,653
10-06-07 조회 1,753
10-06-07 조회 1,634
10-06-07 조회 1,656
10-06-07 조회 1,657
10-06-07 조회 3,148
10-06-07 조회 1,660
10-06-07 조회 1,677
10-06-07 조회 1,654
10-06-07 조회 1,625
10-06-07 조회 1,562
10-06-07 조회 1,783
10-06-07 조회 1,754
10-06-06 조회 1,518
10-06-06 조회 1,658
10-06-06 조회 1,713
10-06-06 조회 1,829
10-06-06 조회 1,672
10-06-06 조회 1,941
10-06-06 조회 1,854