어디가 잘 못 되었을까요?
본문
<?php
$img = array(
G5_THEME_URL."/img/01.png" => "http://www.homzzang.com/b/html",
G5_THEME_URL."/img/02.png" => "http://www.homzzang.com/b/css",
G5_THEME_URL."/img/03.png" => "http://www.homzzang.com/b/js",
G5_THEME_URL."/img/04.png" => "http://www.homzzang.com/b/sql",
G5_THEME_URL."/img/05.png" => "http://www.homzzang.com/b/php",
G5_THEME_URL."/img/06.png" => "http://www.homzzang.com/b/builder",
G5_THEME_URL."/img/07.png" => "http://www.homzzang.com/b/builder",
G5_THEME_URL."/img/08.png" => "http://www.homzzang.com/bbs/write.php?bo_table=order"
);
?>
<ul>
<?php foreach ($img as $k => $v) { ?>
<li><a href="<?php echo $v?>" target="_blank"><img src="<?php echo $src[$k]?>"></a></li>
<?php } ?>
</ul>
답변 1
<?php foreach ($img as $k => $v) { ?>
<li><a href="<?php echo $v?>" target="_blank"><img src="<?php echo $src[$k]?>"></a></li>
<?php } ?>
$img는 있지만 $src는 없네요.
코드가 생략된 건가요?