[급] 쏘스좀 봐주세요. rss 출력에 관해서..
rss 출력이 잘 안되네요..
되다 안되다 ㅠㅠ
소스는..
---------------------------------------------------------------------------------------
include_once("./_common.php");
$rows = "20";
$xmlDoc .= "";
$xmlDoc .= "\n";
$xmlDoc .= "\n";
$xmlDoc .= "\n";
$xmlDoc .= "doctorW : 최신기사 \n";
$xmlDoc .= "http://doctorw.kr\n";
$xmlDoc .= "대화와 소통의 창 닥터W \n";
$xmlDoc .= "ko \n";
$tmp_re=sql_query("select ct_idx, ct_name from $g4[category_table] where ct_parent='$ct_idx' and ct_idx!='$ct_idx'");
for($k=0;$tmp=sql_fetch_array($tmp_re);$k++){
$ct_idxs.=" or ct_idx=$tmp[ct_idx]";
}
$status = "3";
$headine = "and pd_status='".$status."' ";
$condition=" ( ct_idx='$ct_idx' $ct_idxs ) $headine ";
$condition.=" order by ".(($ct_idx)?"pd_idx desc":"pd_parent desc,pd_reno asc");
$sql = " select * from $g4[product_table] where $condition , pd_datetime_end limit 0, $rows ";
$result = sql_query($sql);
for ($i=0;$row=sql_fetch_array($result); $i++) {
$like ="$g4[url]/news/view.php?pd_idx=$row[pd_idx] ";
$pd_title1 = strip_tags($row[pd_title1]);
$xmlDoc .= "- \n";
$xmlDoc .= "$pd_title1 \n";//제목
$xmlDoc .= " $like\n";//링크
$xmlDoc .= " \n";//내용
$xmlDoc .= "$row[pd_saledate] \n"; // 입력날짜
$xmlDoc .= " \n\n";
}
$xmlDoc .= " \n";
$xmlDoc .= " \n";
$fp = fopen("$g4[path]/rss/rss.xml","w");
fwrite($fp, $xmlDoc);
fclose($fp);
?>
---------------------------------------------------------------------------------------
인데요 되다 안되다 하구..
어떻게 해야 할까요? ㅠㅠ
되다 안되다 ㅠㅠ
소스는..
---------------------------------------------------------------------------------------
include_once("./_common.php");
$rows = "20";
$xmlDoc .= "";
$xmlDoc .= "\n";
$xmlDoc .= "
$xmlDoc .= "
$xmlDoc .= "
$xmlDoc .= "http://doctorw.kr\n";
$xmlDoc .= "
$xmlDoc .= "
$tmp_re=sql_query("select ct_idx, ct_name from $g4[category_table] where ct_parent='$ct_idx' and ct_idx!='$ct_idx'");
for($k=0;$tmp=sql_fetch_array($tmp_re);$k++){
$ct_idxs.=" or ct_idx=$tmp[ct_idx]";
}
$status = "3";
$headine = "and pd_status='".$status."' ";
$condition=" ( ct_idx='$ct_idx' $ct_idxs ) $headine ";
$condition.=" order by ".(($ct_idx)?"pd_idx desc":"pd_parent desc,pd_reno asc");
$sql = " select * from $g4[product_table] where $condition , pd_datetime_end limit 0, $rows ";
$result = sql_query($sql);
for ($i=0;$row=sql_fetch_array($result); $i++) {
$like ="$g4[url]/news/view.php?pd_idx=$row[pd_idx] ";
$pd_title1 = strip_tags($row[pd_title1]);
$xmlDoc .= "
$xmlDoc .= "
$xmlDoc .= " $like\n";//링크
$xmlDoc .= "
$xmlDoc .= "
$xmlDoc .= "
}
$xmlDoc .= "
$xmlDoc .= "
$fp = fopen("$g4[path]/rss/rss.xml","w");
fwrite($fp, $xmlDoc);
fclose($fp);
?>
---------------------------------------------------------------------------------------
인데요 되다 안되다 하구..
어떻게 해야 할까요? ㅠㅠ
댓글 1개
새로운나라
14년 전
본문이나 값에 특수문자가 있을듯
게시판 목록
그누4 질문답변
그누보드4 관련 질문은 QA 로 이전됩니다. QA 그누보드4 바로가기
기존 게시물은 열람만 가능합니다.
기존 게시물은 열람만 가능합니다.
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 66554 | 11년 전 | 17733 | ||
| 66553 | 11년 전 | 12554 | ||
| 66552 |
alexseo
|
11년 전 | 10188 | |
| 66551 | 11년 전 | 10925 | ||
| 66550 | 11년 전 | 10496 | ||
| 66549 | 11년 전 | 11846 | ||
| 66548 | 11년 전 | 15029 | ||
| 66547 |
스타크루즈
|
11년 전 | 11493 | |
| 66546 |
kimch
|
11년 전 | 11599 | |
| 66545 | 11년 전 | 11423 | ||
| 66544 | 11년 전 | 12271 | ||
| 66543 |
별을기다리며
|
11년 전 | 14432 | |
| 66542 |
별을기다리며
|
11년 전 | 11924 | |
| 66541 | 11년 전 | 9692 | ||
| 66540 | 11년 전 | 10566 | ||
| 66539 | 11년 전 | 16399 | ||
| 66538 | 11년 전 | 10451 | ||
| 66537 | 11년 전 | 9134 | ||
| 66536 | 11년 전 | 10574 | ||
| 66535 |
alexseo
|
11년 전 | 5590 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기