<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
	<channel>
				<title><![CDATA[스케줄에 글을 작성하면 기존에 있던 작성글이 사라져요]]></title>
		<link>https://www.cosmosfarm.com/threads/rss/document/32826</link>
		<description><![CDATA[<p>while($content = $list-&gt;hasNext()) { </p>

<p>    if (strtotime($cal_year."-".$cal_month."-01") &lt;= strtotime($content-&gt;option-&gt;name) &amp;&amp; strtotime($cal_year."-".$cal_month."-".$cal_last_day) &gt;= strtotime($content-&gt;option-&gt;tel)) {<br />
        // [ ( ) ]<br />
        $cal_start_i = (int)substr($content-&gt;option-&gt;name, -2);<br />
        $cal_end_i = (int)substr($content-&gt;option-&gt;tel, -2);<br />
    }<br />
    if (strtotime($cal_year."-".$cal_month."-01") &gt; strtotime($content-&gt;option-&gt;name) &amp;&amp; strtotime($cal_year."-".$cal_month."-"."-01") &lt;= strtotime($content-&gt;option-&gt;tel) &amp;&amp; strtotime($cal_year."-".$cal_month."-".$cal_last_day) &gt;= strtotime($content-&gt;option-&gt;tel)) {<br />
        // ( [ ) ]<br />
        $cal_start_i = 1;<br />
        $cal_end_i = (int)substr($content-&gt;option-&gt;tel, -2);<br />
    }<br />
    if (strtotime($cal_year."-".$cal_month."-01") &lt;= strtotime($content-&gt;option-&gt;name) &amp;&amp; strtotime($cal_year."-".$cal_month."-".$cal_last_day) &gt;= strtotime($content-&gt;option-&gt;name) &amp;&amp; strtotime($cal_year."-".$cal_month."-".$cal_last_day) &lt; strtotime($content-&gt;option-&gt;tel)) {<br />
        // [ ( ] )<br />
        $cal_start_i = (int)substr($content-&gt;option-&gt;name, -2);<br />
        $cal_end_i = 31;<br />
    }<br />
    if (strtotime($cal_year."-".$cal_month."-01") &gt; strtotime($content-&gt;option-&gt;name) &amp;&amp; strtotime($cal_year."-".$cal_month."-".$cal_last_day) &lt; strtotime($content-&gt;option-&gt;tel)) {<br />
        // ( [ ] )<br />
        $cal_start_i = 1;<br />
        $cal_end_i = 31;<br />
    }<br />
    if (strtotime($cal_year."-".$cal_month."-01") &gt; strtotime($content-&gt;option-&gt;tel)) {<br />
        // ( ) [ ]<br />
        $cal_start_i = 0;<br />
        $cal_end_i = 0;<br />
    }<br />
    if (strtotime($cal_year."-".$cal_month."-".$cal_last_day) &lt; strtotime($content-&gt;option-&gt;name)) {<br />
        // [ ] ( )<br />
        $cal_start_i = 0;<br />
        $cal_end_i = 0;<br />
    }<br />
    </p>

<p>    $cal_list_count = 0;<br />
    $select_std = explode("-", $content-&gt;option-&gt;name);<br />
    $select_std_day = $select_std[2];<br />
    $select_end = explode("-", $content-&gt;option-&gt;name);<br />
    $select_end_day = $select_end[2];</p>

<p> </p>

<p>저 조건이 이상한건가요? name이 시작날이고 tel이 종료날 입니다. cal_last_day는 마지막날입니다.</p>]]></description>
		<copyright>Copyright 2026, 코스모스팜</copyright>
				<item>
			<title><![CDATA[안녕하세요~^^

올려주신 코드는 직접 작성하신 건지요?

해당 코드만으로는 어떤 걸 하시려는지 저희 ...]]></title>
			<link>https://www.cosmosfarm.com/threads/document/32832</link>
			<description><![CDATA[<p>안녕하세요~^^</p>

<p>올려주신 코드는 직접 작성하신 건지요?</p>

<p>해당 코드만으로는 어떤 걸 하시려는지 저희 쪽에서 파악하기 어렵습니다.</p>

<p>또한 출력문이 없어서 기존에 작성한 글이 사라지는 현상도 발견하지 못했습니다.</p>

<p> </p>

<p>$cal_year, $cal_month, $cal_last_day 변수에 임의 값을 넣고</p>

<p>$select_std, $select_end 변수를 확인해보니 게시글 수만큼 표시되는 것을 확인했습니다.</p>

<p> </p>

<p>어떤 부분에 도움이 필요하신지 알려주시면</p>

<p>저희도 도움 드릴 방법을 찾아보겠습니다.</p>

<p>고맙습니다.</p>]]></description>
			<author>스레드봇</author>
			<pubDate>Fri, 03 May 2019 01:37:55 +0000</pubDate>
			<category>KBoard</category>
		</item>
			</channel>
</rss>