Copy
<?phpinclude_once('./_common.php'); if (G5_IS_MOBILE) { include_once(G5_MOBILE_PATH.'/p_artist.php'); return;} if(!$is_admin && $group['gr_device'] == 'mobile') alert($group['gr_subject'].' 그룹은 모바일에서만 접근할 수 있습니다.'); $g5['title'] = "ARTIST";$gr_id ='artist';include_once('./h_artist.php');include_once(G5_LIB_PATH.'/latest.lib.php'); if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가 // add_stylesheet('css 구문', 출력순서); 숫자가 작을 수록 먼저 출력됨 $sql = " select * from {$g5['board_table']} where bo_table = '{$bo_table}' ";$board = sql_fetch($sql); if ($options) list($width, $height, $wrap_width, $content_length) = explode(',', $options);if (!$width) $width = 200;if (!$height) $height = 200;if (!$content_length) $content_length = 120; //add_stylesheet('<link rel="stylesheet" href="'.G5_BBS_URL.'/style.css">',0); ?> <!-- 메인화면 최신글 시작 --> <?php $sql = "select mb_id, mb_1 FROM {$g5['member_table']}"; $result= sql_query($sql); while($row = sql_fetch_array($result)) { $mb_profile_img_path = G5_DATA_PATH."/member/profile_img/".$row[mb_id].".jpg"; if(file_exists($mb_profile_img_path)){ $mb_profile_img_url = G5_DATA_URL."/member/profile_img/".$row[mb_id].".jpg"; } else { // 프로필 이미지가 없으면 기본 이미지를 보여준다. $mb_profile_img_url = G5_IMG_URL."/no_profile_image.jpg"; }$img_result .= "$mb_profile_img_url"; } ?> <div id="about" class="laAbout_home-section text-center"> <div class="heading-about"> <div class="row"> <div class="col-lg-8 col-lg-offset-2"> <div class="wow bounceInDown" data-wow-delay="0.4s"> <div class="section-heading"> <h2>ARTIST</h2> <i class="fa fa-2x fa-angle-down"></i> </div> </div> </div> </div> <div class="row"> <div class="col-xs-10 col-xs-offset-1 col-sm-6 col-sm-offset-0 col-md-3 col-md-offset-0 "> <div class="wow bounceInUp" data-wow-delay="0.<?php echo $j*3 ?>s"> <div class="team boxed-white"> <div class="inner"> <div class="avatar"> <img src="<?=$img_result?>" alt="" class="img-responsive img-circle" /> </div> <div class="subtitle"> <strong> <?=$row[mb_id]?> </strong> </br> </div> </div> </a> </div> </div> </div> </div> <!-- row --> </div><!--heading-about--></div> <script src="<?=G5_BBS_URL?>/artist/js/wow.min.js"></script><script src="<?=G5_BBS_URL?>/artist/js/custom.js"></script> <!-- 메인화면 최신글 끝 --> <?phpinclude_once('./_tail.php');?>
이렇게 회원사진 기능을 입혀서 모든 회원 사진을 추출하고 있어요.
여기다 최신글 디자인을 입혀서 추출하려는데 모두 모여서 추출이 되더라구요..
나눠서 하나씩 추출하는 방법이 있을까요?ㅠㅠ
진짜 도와주세요!! 제발
답변 1개
채택된 답변
+20 포인트
2016-06-01 (수) 08:27:59
$img_result .= "$mb_profile_img_url";
=>
$img_result = "$mb_profile_img_url";
. 을 빼시면 됩니다.
답변을 작성하려면 로그인이 필요합니다.