This commit is contained in:
Flatlogic Bot 2026-02-28 21:38:51 +00:00
parent 7d6eb1b1e4
commit 871eb7711b

View File

@ -115,6 +115,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') {
}
if ($existingStartup) {
// Count columns: 24 columns in SET clause
$stmt = db()->prepare("UPDATE startups SET
name = ?, description = ?, legal_name = ?, country = ?, industry = ?, sub_industry = ?, business_model = ?, product_service = ?, operational_stage = ?,
cofounder_equity_pct = ?, cofounder_equity_type = ?, cofounder_responsibilities = ?, desired_cofounder_experience = ?, cofounder_commitment = ?, other_partnership_details = ?,
@ -123,6 +124,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') {
recommended_return_rate = ?, recommended_return_reasoning = ?
WHERE id = ? AND founder_id = ?");
// Execute parameters: 24 columns + 2 WHERE params = 26
$stmt->execute([
$name, $description, $legal_name, $country, $industry, $sub_industry, $business_model, $product_service, $operational_stage,
$cofounder_equity_pct, $cofounder_equity_type, $cofounder_responsibilities, $desired_cofounder_experience, $cofounder_commitment, $other_partnership_details,
@ -133,14 +135,16 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') {
]);
$final_id = $existingStartup['id'];
} else {
// Count columns: 26 columns
$stmt = db()->prepare("INSERT INTO startups (
name, description, legal_name, country, industry, sub_industry, business_model, product_service, operational_stage,
cofounder_equity_pct, cofounder_equity_type, cofounder_responsibilities, desired_cofounder_experience, cofounder_commitment, other_partnership_details,
current_cash_balance, burn_rate,
doc_income_statements, doc_balance_sheets, doc_cash_flow_statements, doc_revenue_breakdown, doc_gross_margin,
founder_id, recommended_return_rate, recommended_return_reasoning, status
) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, 'private')");
) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, 'private')");
// Execute parameters: 25 ? placeholders + 'private' literal = 26 items
$stmt->execute([
$name, $description, $legal_name, $country, $industry, $sub_industry, $business_model, $product_service, $operational_stage,
$cofounder_equity_pct, $cofounder_equity_type, $cofounder_responsibilities, $desired_cofounder_experience, $cofounder_commitment, $other_partnership_details,
@ -360,4 +364,4 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') {
</div>
</body>
</html>
</html>