prepare($sql); $stmh->bindValue(1, $num, PDO::PARAM_INT); $stmh->execute(); $row = $stmh->fetch(PDO::FETCH_ASSOC); $content = $row['content']; // 저장된 content 값을 가져옴 include '_row.php'; // 콤마 제거 후 숫자로 변환 $amount = floatval(str_replace(',', '', $row['amount'])); } catch (PDOException $Exception) { echo "오류: " . $Exception->getMessage(); exit; } } else { include '_request.php'; $mode = 'insert'; $registDate = date('Y-m-d'); $inoutsep = '수입'; $amount = 0; $content = ''; // 기본값 설정 } $title_message = ($mode === 'update') ? '수입 (계산서발생) 수정' : '수입 (계산서발행) 신규 등록'; ?>
등록일자 구분
>
거래처
 
금액