채택완료

문법좀...

2016-07-06 (수) 09:20:59 4,319

<a href="<?php echo G5_BBS_URL ?>/board.php?bo_table=<?php echo $list[$i]['bo_table'] ?>"> 링크 </a> 

를 아래 빨간색 이미지에 링크걸려면 어찌 넣어줘야 하나요? 꾸벅 -..-;

<?php

$sql = "select mb_id 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 .= "<img src=$mb_profile_img_url>$row[mb_id]";

}

echo $img_result  ;

?>

|

답변 1개 / 댓글 1개

채택된 답변
+20 포인트

}$img_result .= "<a href='".G5_BBS_URL."/board.php?bo_table=".$list[$i]['bo_table']."'><img src=$mb_profile_img_url>$row[mb_id]</a>"; 

답변에 대한 댓글 1개

답변 감사합니다.

답변을 작성하려면 로그인이 필요합니다.