include $_SERVER['DOCUMENT_ROOT'].'/sm/lib/basic.php'; $idx = (int)$_GET['idx']; $page = $_GET['page']; $btype = str_replace( "'", "", $_GET['btype']); $bunryu = (int)$_GET['bunryu']; $bunryu2 = (int)$_GET['bunryu2']; $srctxt = substr($_GET['srctxt'], 0,30); if(!$bunryu) $bunryu = 1; $sql = "select * from sw_board where idx = :idx "; $stmt = $db->prepare($sql); $stmt->bindParam(':idx', $idx, PDO::PARAM_STR); $stmt->execute(); $row = $stmt->fetch(PDO::FETCH_ASSOC); $imgurs = getImgs( $row['idx'], 2); $imgs = array(); for($i=0;$i<=6;$i++){ if($imgurs[$i]) array_push($imgs, $imgurs[$i]); } if(!count($imgurs) ) $imgurs[0]['filename'] = "/img/common/img_on.png"; ?>
=$row['title']?>
=$row['writor']?>