비회원 이미지가 엑박으로 나오는데..
엑박말고 이미지를 추가 하고 싶습니다.
=====================================================================
<?
// 회원 이미지
$mPhoto_image = "{$g4['path']}/data/mPhoto_image/{$list[$i][mb_id]}";
$mPhoto_image2 = "{$g4['path']}/img2/noimg.gif";
// 파일이 있을 때
if (file_exists($mPhoto_image)) {
echo "<img src='{$mPhoto_image}'>";
} else {
echo "<img src='{$mPhoto_image2}'>";
}
?>
엑박말고 이미지를 추가 하고 싶습니다.
=====================================================================
<?
// 회원 이미지
$mPhoto_image = "{$g4['path']}/data/mPhoto_image/{$list[$i][mb_id]}";
$mPhoto_image2 = "{$g4['path']}/img2/noimg.gif";
// 파일이 있을 때
if (file_exists($mPhoto_image)) {
echo "<img src='{$mPhoto_image}'>";
} else {
echo "<img src='{$mPhoto_image2}'>";
}
?>
댓글을 작성하시려면 로그인이 필요합니다.
댓글 2개
부분을 아래처럼 하시면 될 것 같습니다.
if (file_exists($mPhoto_image) && $list[$i]['mb_id']) {