cb_list.php에서 아래의 내용을 수정하세요
///////수정전
$cs = sql_fetch(" select cs_img from $nc[tbl_coverstory] where cb_id = '$row[cb_id]' ");
$image = "./images/cover.jpg";
if ( file_exists("./data/$row[cb_id]/$cs[cs_img]") && $cs[cs_img] ) {
$image = "./data/$row[cb_id]/". urlencode($cs[cs_img]);
}
///////수정후
$cs = sql_fetch(" select cs_img from $nc[tbl_coverstory] where cb_id = '$row[cb_id]' and cs_use = 'Y' order by cb_id desc");
$image = "./images/cover.jpg";
if ( file_exists("./data/$row[cb_id]/$cs[cs_img]") && $cs[cs_img] ) {
$image = "./data/$row[cb_id]/". urlencode($cs[cs_img]);
}
///////수정전
$cs = sql_fetch(" select cs_img from $nc[tbl_coverstory] where cb_id = '$row[cb_id]' ");
$image = "./images/cover.jpg";
if ( file_exists("./data/$row[cb_id]/$cs[cs_img]") && $cs[cs_img] ) {
$image = "./data/$row[cb_id]/". urlencode($cs[cs_img]);
}
///////수정후
$cs = sql_fetch(" select cs_img from $nc[tbl_coverstory] where cb_id = '$row[cb_id]' and cs_use = 'Y' order by cb_id desc");
$image = "./images/cover.jpg";
if ( file_exists("./data/$row[cb_id]/$cs[cs_img]") && $cs[cs_img] ) {
$image = "./data/$row[cb_id]/". urlencode($cs[cs_img]);
}
|
댓글을 작성하시려면 로그인이 필요합니다.
댓글 1개