prepare($sql); $stmh->bindValue(1, $num, PDO::PARAM_STR); $stmh->execute(); $count = $stmh->rowCount(); $row = $stmh->fetch(PDO::FETCH_ASSOC); include "_row.php"; } catch (PDOException $Exception) { print "오류: " . $Exception->getMessage(); } $iList = isset($iList) ? json_decode($iList, true) : []; $orderman = $user_name; $todayStr = date("m/d"); $indateStr = date("m/d", strtotime($inspection_date)); // JSON 데이터를 JavaScript 변수로 변환 echo ""; $item_name = isset($row['item_name']) ? $row['item_name'] : ''; $item_name = str_replace(' ', '', $item_name); // 모든 공백 제거 $spec = isset($row['specification']) ? $row['specification'] : ''; $spec = str_replace(' ', '', $spec); // 모든 공백 제거 ?>