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);
?>
---------------------------------------------------------------------------------------
인데요 되다 안되다 하구..
어떻게 해야 할까요? ㅠㅠ
게시글 목록
| 번호 | 제목 |
|---|---|
| 284508 | |
| 284499 | |
| 284492 | |
| 284490 | |
| 284484 | |
| 284481 | |
| 284478 | |
| 284476 | |
| 284474 | |
| 284472 | |
| 284470 | |
| 284458 | |
| 284457 | |
| 284454 | |
| 284453 | |
| 284447 | |
| 284446 | |
| 284444 | |
| 284441 | |
| 284440 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기