$img_content = '<span style="width:'.$board['bo_gallery_width'].'px;height:'.$board['bo_gallery_height'].'px">no image</span>';
이게 소스구요 게시판에 이미지 없이 글을 작성하면 이미지 위치에 no image라고 나옵니다.
이 no image가 안나오고 게시판 제목이 나오게 하고싶은데 방법이 있을까요?
|
답변 3개
채택된 답변
+20 포인트
2017-04-05 (수) 15:07:31
$img_content = '<img src = "'.G5_IMG_URL.'/no_img.png"; style="width:'.$board['bo_gallery_width'].'px;height:'.$board['bo_gallery_height'].'px">';
이런식으로 하고 해당 경로에 파일만 넣어주면 되지않을까요?
2017-04-05 (수) 17:25:18
// 이미지 게시판 제목표시
$img_content = '<span>'.$board['bo_subejct'].'</span>';
2017-04-05 (수) 16:11:59
$img_content = $board[bo_subject]; <---이게 게시판 제목입니다
답변을 작성하려면 로그인이 필요합니다.