include_once('./_common.php'); $sub = 2; $title = '제품소개'; if(!$id) { $sql = "SELECT * FROM product where cid = '1' order by corder desc limit 0, 1"; $result = sql_fetch($sql); $id = $result[id]; } //페이지 타이틀 가져오기 $sql = "SELECT * FROM product WHERE id={$id}"; $view = sql_fetch($sql); $title = $view[name]; $content = $view[memo]; $picture = $view[picture]; include ('./head.php'); ?> if($content) { ?>