제가 초보라 그런데 이소스에서 어떤값을 가지고 온다는건가요???

제가 초보라 그런데 이소스에서 어떤값을 가지고 온다는건가요???

QA

제가 초보라 그런데 이소스에서 어떤값을 가지고 온다는건가요???

본문

 

<?
include_once("./_common.php");
include_once("$g4[path]/head.sub.php");
$bo_table2 = 'g4_write_'.$bo_table;
// 이번달 첫날 구하기
$start = date("Ym").'00';
$end = date("Ym").'33';
$sql = "SELECT * FROM $bo_table2 where wr_link1 > $start and wr_link1 < $end order by wr_link1";
$query = mysql_query($sql);
// $row = mysql_fetch_array($query);

?>
<link href="/style.css" rel="stylesheet" type="text/css" />
<table width="100%" border="0" cellspacing="0" cellpadding="0" background="calimg/cal_back.gif" style="background-repeat:repeat-y;">
<tr><Td colspan="4" align="center" style="padding-top:5px; padding-bottom:2px;">
<table width="95%" height="10" border="0" cellpadding="0" cellspacing="0"  background="calimg/dote.gif">
  <tr>
    <td></td>
  </tr>
</table>

</Td></tr>
  <tr>
    <td style="padding:0px 5px;"><table width="100%">
        <Tr>
          <td style="padding-left:56px; background-repeat:no-repeat; background-position:left;" colspan="4" background="calimg/cal_daycounter.gif" ><font size="+1">
            <?
 $sql2 = mysql_query("SELECT SQL_CALC_FOUND_ROWS * FROM $bo_table2 where wr_link1 > $start and wr_link1 < $end");
 $result = mysql_query("SELECT FOUND_ROWS()");
 $total = mysql_fetch_row($result);
 echo $total[0];

?>
            </font> </td>
        </Tr>
      </table></td>
  </tr>
  <tr>
    <td valign="top"><table width="99%">
        <?
 while($row = mysql_fetch_array($query)){
  $datee=$row[wr_link1];
   ?>
        <tr>
          <td style="padding-left:3px;"><font style='font-family:돋움; font-size:8pt;'>[
            <? // echo substr($datee,0,4)."년". ?>
            <? echo sprintf("%2d",substr($datee,4,2))."월".sprintf("%2d",substr($datee,6,2))."일"; ?> ]</font></td>
          <td><font style='font-family:돋움; font-size:8pt; color:#339933;'><b>
           <a href="<?=$g4[path]?>/bbs/board.php?bo_table=<?=$bo_table?>&wr_id=<?=$row[wr_id]?>" target="_parent"> <?=$row[wr_subject];?>
     </a>
            </b></font></td>
          <td style="padding-right:3px;"><font style='font-family:돋움; font-size:8pt;'>~<? echo sprintf("%2d",substr($datee,6,2))."일";?></font></td>
        </tr>
  <tr><Td></Td></tr>
        <?  } ?>
      </table></td>
  </tr>
  <tr>
    <td colspan="4"><img src="calimg/cal_down.gif" /></td>
  </tr>
</table>

 

wr_link1 <<<이값을 가져온다는건지;;

제가 이해가 안되서여 일정표에 글을 올려도 값이 안나옵니다..

어느값을 가져온다는건지 답글 부탁드립니다

이 질문에 댓글 쓰기 :

답변 1

초보자라서 정확하지 않을 수 있습니다. 양해부탁드려요 ^^*

select 구문 where 절에 wr_link1 > $start and wr_link1 < $end​ 이렇게 되어 있는데요.

wr_link1 값이 $start 값보다 크고 $end 보다 작은 것을 출력하라는 뜻 같은데요.

// 이번달 첫날 구하기
$start = date("Ym").'00';
$end = date("Ym").'33';
를 echo로 찍어보니
$start = 20141000
$end = 20141033 가 나오네요.
wr_link1 값이 20141000보다 크고 20141033보다 작은 값을 출력하는게 아닌지..

그 값이 있는데 도무지 안나오는지 모르겠습니다 ㅠㅠ
사이트가 http://chooya.com/paul 입니다
하루종일 해매고 있네여;;
아 뭐가 잘못된거지;;
아이프레임으로    <iframe frameborder="0" src='http://www.chooya.com/paul/maincal.php?bo_table=schedule' scrolling="no" width="100%" height="105"></iframe>
  <iframe src='http://www.chooya.com/paul/maincal.php?bo_table=schedule'></iframe>
이렇게 값을 끌어왔습니다

답변을 작성하시기 전에 로그인 해주세요.
전체 123,681 | RSS
QA 내용 검색

회원로그인

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