v41
This commit is contained in:
parent
620c82043f
commit
409309595e
1
assets/docs/cvs/placeholder.pdf
Normal file
1
assets/docs/cvs/placeholder.pdf
Normal file
@ -0,0 +1 @@
|
||||
%PDF-1.4 Placeholder CV
|
||||
3
db/migrations/18_add_cv_and_country_to_users.sql
Normal file
3
db/migrations/18_add_cv_and_country_to_users.sql
Normal file
@ -0,0 +1,3 @@
|
||||
-- Add CV and Country fields to users table
|
||||
ALTER TABLE users ADD COLUMN IF NOT EXISTS cv_url VARCHAR(255) DEFAULT NULL;
|
||||
ALTER TABLE users ADD COLUMN IF NOT EXISTS country VARCHAR(100) DEFAULT NULL;
|
||||
@ -14,6 +14,9 @@ $platformName = defined('PLATFORM_NAME') ? PLATFORM_NAME : 'Gatsby';
|
||||
$error = '';
|
||||
$success = '';
|
||||
|
||||
// Centralized country list
|
||||
$countries = require 'includes/countries.php';
|
||||
|
||||
if ($_SERVER['REQUEST_METHOD'] === 'POST') {
|
||||
if (isset($_POST['action']) && $_POST['action'] === 'update_profile') {
|
||||
$full_name = trim($_POST['full_name']);
|
||||
@ -22,17 +25,47 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') {
|
||||
$degree_program = trim($_POST['degree_program']);
|
||||
$skills = trim($_POST['skills']);
|
||||
$startup_industries = trim($_POST['startup_industries']);
|
||||
$country = $_POST['country'] ?? '';
|
||||
|
||||
if ($full_name) {
|
||||
$stmt = db()->prepare("UPDATE users SET full_name = ?, bio = ?, university = ?, degree_program = ?, skills = ?, startup_industries = ? WHERE id = ?");
|
||||
$stmt->execute([$full_name, $bio, $university, $degree_program, $skills, $startup_industries, $user_id]);
|
||||
$success = "Profile updated successfully!";
|
||||
// Refresh user data
|
||||
$stmt = db()->prepare("SELECT * FROM users WHERE id = ?");
|
||||
$stmt->execute([$user_id]);
|
||||
$user = $stmt->fetch();
|
||||
} else {
|
||||
$error = "Full name is required.";
|
||||
$cv_url = $user['cv_url'];
|
||||
|
||||
// Handle CV Upload
|
||||
if (isset($_FILES['cv_file']) && $_FILES['cv_file']['error'] === UPLOAD_ERR_OK) {
|
||||
$file_tmp = $_FILES['cv_file']['tmp_name'];
|
||||
$file_name = $_FILES['cv_file']['name'];
|
||||
$file_ext = strtolower(pathinfo($file_name, PATHINFO_EXTENSION));
|
||||
$allowed_exts = ['pdf', 'doc', 'docx'];
|
||||
|
||||
if (in_array($file_ext, $allowed_exts)) {
|
||||
$upload_dir = 'assets/docs/cvs/';
|
||||
if (!is_dir($upload_dir)) {
|
||||
mkdir($upload_dir, 0777, true);
|
||||
}
|
||||
$new_file_name = 'cv_' . $user_id . '_' . time() . '.' . $file_ext;
|
||||
$target_path = $upload_dir . $new_file_name;
|
||||
|
||||
if (move_uploaded_file($file_tmp, $target_path)) {
|
||||
$cv_url = $target_path;
|
||||
} else {
|
||||
$error = "Failed to upload CV.";
|
||||
}
|
||||
} else {
|
||||
$error = "Invalid CV file type. Only PDF, DOC, and DOCX are allowed.";
|
||||
}
|
||||
}
|
||||
|
||||
if (!$error) {
|
||||
if ($full_name) {
|
||||
$stmt = db()->prepare("UPDATE users SET full_name = ?, bio = ?, university = ?, degree_program = ?, skills = ?, startup_industries = ?, country = ?, cv_url = ? WHERE id = ?");
|
||||
$stmt->execute([$full_name, $bio, $university, $degree_program, $skills, $startup_industries, $country, $cv_url, $user_id]);
|
||||
$success = "Profile updated successfully!";
|
||||
// Refresh user data
|
||||
$stmt = db()->prepare("SELECT * FROM users WHERE id = ?");
|
||||
$stmt->execute([$user_id]);
|
||||
$user = $stmt->fetch();
|
||||
} else {
|
||||
$error = "Full name is required.";
|
||||
}
|
||||
}
|
||||
} elseif (isset($_POST['action']) && $_POST['action'] === 'delete_account') {
|
||||
try {
|
||||
@ -109,7 +142,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') {
|
||||
<?php if ($success): ?><div class="alert alert-success" style="margin-bottom: 30px;"><?= htmlspecialchars($success) ?></div><?php endif; ?>
|
||||
|
||||
<div class="card">
|
||||
<form method="POST">
|
||||
<form method="POST" enctype="multipart/form-data">
|
||||
<input type="hidden" name="action" value="update_profile">
|
||||
<div class="form-group" style="margin-bottom: 20px;">
|
||||
<label>Full Name</label>
|
||||
@ -119,6 +152,19 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') {
|
||||
<label>Bio</label>
|
||||
<textarea name="bio" class="form-control" rows="4" style="background: var(--surface-color); color: #fff; border: 1px solid var(--border-color);"><?= htmlspecialchars($user['bio']) ?></textarea>
|
||||
</div>
|
||||
|
||||
<div class="form-group" style="margin-bottom: 20px;">
|
||||
<label>Country</label>
|
||||
<select name="country" class="form-control" style="background: var(--surface-color); color: #fff; border: 1px solid var(--border-color);">
|
||||
<option value="">Select a country...</option>
|
||||
<?php foreach ($countries as $c): ?>
|
||||
<option value="<?= htmlspecialchars($c) ?>" <?= ($user['country'] === $c) ? 'selected' : '' ?>>
|
||||
<?= htmlspecialchars($c) ?>
|
||||
</option>
|
||||
<?php endforeach; ?>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="form-group" style="margin-bottom: 20px;">
|
||||
<label>University</label>
|
||||
<input type="text" name="university" class="form-control" value="<?= htmlspecialchars($user['university']) ?>" style="background: var(--surface-color); color: #fff; border: 1px solid var(--border-color);">
|
||||
@ -131,10 +177,23 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') {
|
||||
<label>Skills (comma separated)</label>
|
||||
<input type="text" name="skills" class="form-control" value="<?= htmlspecialchars($user['skills']) ?>" style="background: var(--surface-color); color: #fff; border: 1px solid var(--border-color);">
|
||||
</div>
|
||||
<div class="form-group" style="margin-bottom: 30px;">
|
||||
<div class="form-group" style="margin-bottom: 20px;">
|
||||
<label>Industries of Interest (comma separated)</label>
|
||||
<input type="text" name="startup_industries" class="form-control" value="<?= htmlspecialchars($user['startup_industries']) ?>" style="background: var(--surface-color); color: #fff; border: 1px solid var(--border-color);">
|
||||
</div>
|
||||
|
||||
<?php if ($user['role'] === 'founder'): ?>
|
||||
<div class="form-group" style="margin-bottom: 30px;">
|
||||
<label>Upload CV (PDF, DOC, DOCX)</label>
|
||||
<?php if ($user['cv_url']): ?>
|
||||
<div style="margin-bottom: 10px; font-size: 14px;">
|
||||
<a href="<?= htmlspecialchars($user['cv_url']) ?>" target="_blank" style="color: var(--accent-color);"><i class="fas fa-file-alt"></i> Current CV</a>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<input type="file" name="cv_file" class="form-control" style="background: var(--surface-color); color: #fff; border: 1px solid var(--border-color); padding: 10px;">
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<button type="submit" class="btn btn-primary" style="width: 100%;">Save Changes</button>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
@ -18,6 +18,7 @@ if ($user['onboarding_completed']) {
|
||||
}
|
||||
|
||||
$error = '';
|
||||
$countries = require 'includes/countries.php';
|
||||
|
||||
if ($_SERVER['REQUEST_METHOD'] === 'POST') {
|
||||
$degree_program = trim($_POST['degree_program'] ?? '');
|
||||
@ -163,7 +164,12 @@ $all_industries = ['AI & Machine Learning', 'Fintech', 'SaaS', 'Climate Tech', '
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label>Country of Residence</label>
|
||||
<input type="text" name="country" placeholder="e.g. United Kingdom" required>
|
||||
<select name="country" required>
|
||||
<option value="">Select a country...</option>
|
||||
<?php foreach ($countries as $c): ?>
|
||||
<option value="<?= htmlspecialchars($c) ?>"><?= htmlspecialchars($c) ?></option>
|
||||
<?php endforeach; ?>
|
||||
</select>
|
||||
</div>
|
||||
<div style="display: flex; justify-content: flex-end; margin-top: 30px;">
|
||||
<button type="button" class="btn btn-primary" onclick="nextStep(2)">Next: Professional Info</button>
|
||||
|
||||
28
includes/countries.php
Normal file
28
includes/countries.php
Normal file
@ -0,0 +1,28 @@
|
||||
<?php
|
||||
// Comprehensive list of countries for dropdowns
|
||||
return [
|
||||
"Afghanistan", "Albania", "Algeria", "Andorra", "Angola", "Antigua and Barbuda", "Argentina", "Armenia", "Australia", "Austria", "Azerbaijan",
|
||||
"Bahamas", "Bahrain", "Bangladesh", "Barbados", "Belarus", "Belgium", "Belize", "Benin", "Bhutan", "Bolivia", "Bosnia and Herzegovina", "Botswana", "Brazil", "Brunei", "Bulgaria", "Burkina Faso", "Burundi",
|
||||
"Cabo Verde", "Cambodia", "Cameroon", "Canada", "Central African Republic", "Chad", "Chile", "China", "Colombia", "Comoros", "Congo (Congo-Brazzaville)", "Costa Rica", "Croatia", "Cuba", "Cyprus", "Czechia (Czech Republic)",
|
||||
"Denmark", "Djibouti", "Dominica", "Dominican Republic",
|
||||
"Ecuador", "Egypt", "El Salvador", "Equatorial Guinea", "Eritrea", "Estonia", "Eswatini", "Ethiopia",
|
||||
"Fiji", "Finland", "France",
|
||||
"Gabon", "Gambia", "Georgia", "Germany", "Ghana", "Greece", "Grenada", "Guatemala", "Guinea", "Guinea-Bissau", "Guyana",
|
||||
"Haiti", "Holy See", "Honduras", "Hungary",
|
||||
"Iceland", "India", "Indonesia", "Iran", "Iraq", "Ireland", "Israel", "Italy", "Ivory Coast",
|
||||
"Jamaica", "Japan", "Jordan",
|
||||
"Kazakhstan", "Kenya", "Kiribati", "Kuwait", "Kyrgyzstan",
|
||||
"Laos", "Latvia", "Lebanon", "Lesotho", "Liberia", "Libya", "Liechtenstein", "Lithuania", "Luxembourg",
|
||||
"Madagascar", "Malawi", "Malaysia", "Maldives", "Mali", "Malta", "Marshall Islands", "Mauritania", "Mauritius", "Mexico", "Micronesia", "Moldova", "Monaco", "Mongolia", "Montenegro", "Morocco", "Mozambique", "Myanmar (formerly Burma)",
|
||||
"Namibia", "Nauru", "Nepal", "Netherlands", "New Zealand", "Nicaragua", "Niger", "Nigeria", "North Korea", "North Macedonia", "Norway",
|
||||
"Oman",
|
||||
"Pakistan", "Palau", "Palestine State", "Panama", "Papua New Guinea", "Paraguay", "Peru", "Philippines", "Poland", "Portugal",
|
||||
"Qatar",
|
||||
"Romania", "Russia", "Rwanda",
|
||||
"Saint Kitts and Nevis", "Saint Lucia", "Saint Vincent and the Grenades", "Samoa", "San Marino", "Sao Tome and Principe", "Saudi Arabia", "Senegal", "Serbia", "Seychelles", "Sierra Leone", "Singapore", "Slovakia", "Slovenia", "Solomon Islands", "Somalia", "South Africa", "South Korea", "South Sudan", "Spain", "Sri Lanka", "Sudan", "Suriname", "Sweden", "Switzerland", "Syria",
|
||||
"Tajikistan", "Tanzania", "Thailand", "Timor-Leste", "Togo", "Tonga", "Trinidad and Tobago", "Tunisia", "Turkey", "Turkmenistan", "Tuvalu",
|
||||
"Uganda", "Ukraine", "United Arab Emirates", "United Kingdom", "United States of America", "Uruguay", "Uzbekistan",
|
||||
"Vanuatu", "Venezuela", "Vietnam",
|
||||
"Yemen",
|
||||
"Zambia", "Zimbabwe"
|
||||
];
|
||||
@ -18,18 +18,20 @@ if ($user['onboarding_completed']) {
|
||||
}
|
||||
|
||||
$error = '';
|
||||
$countries = require 'includes/countries.php';
|
||||
|
||||
if ($_SERVER['REQUEST_METHOD'] === 'POST') {
|
||||
$bio = trim($_POST['bio'] ?? '');
|
||||
$interests = isset($_POST['interests']) ? implode(',', $_POST['interests']) : '';
|
||||
$investment_appetite = trim($_POST['investment_appetite'] ?? '');
|
||||
$country = $_POST['country'] ?? '';
|
||||
|
||||
if (empty($bio) || empty($interests) || empty($investment_appetite)) {
|
||||
if (empty($bio) || empty($interests) || empty($investment_appetite) || empty($country)) {
|
||||
$error = "Please fill in all required fields.";
|
||||
} else {
|
||||
$stmt = db()->prepare("UPDATE users SET bio = ?, interests = ?, investment_appetite = ?, onboarding_completed = 1 WHERE id = ?");
|
||||
$stmt = db()->prepare("UPDATE users SET bio = ?, interests = ?, investment_appetite = ?, country = ?, onboarding_completed = 1 WHERE id = ?");
|
||||
try {
|
||||
$stmt->execute([$bio, $interests, $investment_appetite, $_SESSION['user_id']]);
|
||||
$stmt->execute([$bio, $interests, $investment_appetite, $country, $_SESSION['user_id']]);
|
||||
header("Location: dashboard.php");
|
||||
exit;
|
||||
} catch (PDOException $e) {
|
||||
@ -70,6 +72,16 @@ $interests_options = ['Tech', 'Sustainability', 'Healthcare', 'Fintech', 'Educat
|
||||
<textarea name="bio" required maxlength="250" style="width: 100%; padding: 12px; border-radius: 12px; background: var(--surface-color); border: 1px solid var(--border-color); color: #fff; height: 120px; resize: none;" placeholder="E.g. Angel investor focused on climate tech and early-stage SaaS..."></textarea>
|
||||
</div>
|
||||
|
||||
<div style="margin-bottom: 25px;">
|
||||
<label style="display: block; margin-bottom: 8px; font-size: 14px; font-weight: 500;">Country of Residence</label>
|
||||
<select name="country" required style="width: 100%; padding: 12px; border-radius: 12px; background: var(--surface-color); border: 1px solid var(--border-color); color: #fff;">
|
||||
<option value="">Select a country...</option>
|
||||
<?php foreach ($countries as $c): ?>
|
||||
<option value="<?= htmlspecialchars($c) ?>"><?= htmlspecialchars($c) ?></option>
|
||||
<?php endforeach; ?>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div style="margin-bottom: 25px;">
|
||||
<label style="display: block; margin-bottom: 8px; font-size: 14px; font-weight: 500;">Industries of Interest</label>
|
||||
<div style="display: flex; flex-wrap: wrap; gap: 10px;">
|
||||
|
||||
22
profile.php
22
profile.php
@ -19,6 +19,11 @@ if (!$target_user) {
|
||||
}
|
||||
|
||||
$is_own_profile = ($current_user_id == $target_user_id);
|
||||
|
||||
$stmt_current = db()->prepare("SELECT role FROM users WHERE id = ?");
|
||||
$stmt_current->execute([$current_user_id]);
|
||||
$current_user = $stmt_current->fetch();
|
||||
|
||||
$platformName = defined('PLATFORM_NAME') ? PLATFORM_NAME : 'Gatsby';
|
||||
|
||||
// Fetch target user's startups if they are a founder
|
||||
@ -106,13 +111,18 @@ if ($target_user['role'] === 'founder') {
|
||||
<div style="color: var(--text-secondary); font-size: 18px; margin-bottom: 20px;">
|
||||
<i class="fas fa-university"></i> <?= htmlspecialchars($target_user['university']) ?> • <?= htmlspecialchars($target_user['degree_program']) ?>
|
||||
</div>
|
||||
<?php if (!$is_own_profile): ?>
|
||||
<div style="display: flex; gap: 15px;">
|
||||
<div style="display: flex; gap: 15px;">
|
||||
<?php if (!$is_own_profile): ?>
|
||||
<a href="messages.php?chat_with=<?= $target_user['id'] ?>" class="btn btn-primary" style="padding: 12px 24px; font-size: 14px;">
|
||||
<i class="far fa-comment-dots"></i> Message
|
||||
</a>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<?php endif; ?>
|
||||
<?php if ($target_user['role'] === 'founder' && $target_user['cv_url']): ?>
|
||||
<a href="<?= htmlspecialchars($target_user['cv_url']) ?>" target="_blank" class="btn btn-secondary" style="padding: 12px 24px; font-size: 14px; border-color: var(--border-color);">
|
||||
<i class="fas fa-file-pdf"></i> Download CV
|
||||
</a>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@ -127,7 +137,7 @@ if ($target_user['role'] === 'founder') {
|
||||
<div style="display: flex; flex-direction: column; gap: 15px;">
|
||||
<div>
|
||||
<div style="font-size: 11px; text-transform: uppercase; color: var(--text-secondary); margin-bottom: 4px;">Location</div>
|
||||
<div style="font-weight: 600;"><?= htmlspecialchars($target_user['country'] ?: 'Not specified') ?></div>
|
||||
<div style="font-weight: 600;"><i class="fas fa-globe-americas" style="margin-right: 5px; opacity: 0.6;"></i> <?= htmlspecialchars($target_user['country'] ?: 'Not specified') ?></div>
|
||||
</div>
|
||||
<?php if($target_user['role'] === 'founder'): ?>
|
||||
<div>
|
||||
@ -202,4 +212,4 @@ if ($target_user['role'] === 'founder') {
|
||||
</footer>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
</html>
|
||||
@ -38,7 +38,8 @@ $founders = [
|
||||
'graduation_year' => 2018,
|
||||
'bio' => 'Former software engineer at Google with a passion for logistics and AI.',
|
||||
'interests' => 'AI, Logistics, E-commerce',
|
||||
'country' => 'USA',
|
||||
'country' => 'United States of America',
|
||||
'cv_url' => 'assets/docs/cvs/placeholder.pdf',
|
||||
'skills' => 'Python, TensorFlow, Cloud Architecture',
|
||||
'years_experience' => 5,
|
||||
'previous_startup_exp' => 1,
|
||||
@ -72,7 +73,8 @@ $founders = [
|
||||
'graduation_year' => 2015,
|
||||
'bio' => 'Marine biologist turned entrepreneur.',
|
||||
'interests' => 'Sustainability, Marine Biology',
|
||||
'country' => 'UK',
|
||||
'country' => 'United Kingdom',
|
||||
'cv_url' => 'assets/docs/cvs/placeholder.pdf',
|
||||
'skills' => 'Biochemistry, Product Development',
|
||||
'years_experience' => 8,
|
||||
'previous_startup_exp' => 0,
|
||||
@ -107,6 +109,7 @@ $founders = [
|
||||
'bio' => 'Finance veteran with 10 years in investment banking.',
|
||||
'interests' => 'Fintech, Banking, Blockchain',
|
||||
'country' => 'Italy',
|
||||
'cv_url' => 'assets/docs/cvs/placeholder.pdf',
|
||||
'skills' => 'Financial Modeling, Compliance',
|
||||
'years_experience' => 12,
|
||||
'previous_startup_exp' => 1,
|
||||
@ -151,12 +154,12 @@ $investors = [
|
||||
'bio' => 'Angel investor with a background in SaaS.',
|
||||
'interests' => 'SaaS, B2B',
|
||||
'investment_appetite' => '$50k - $250k',
|
||||
'country' => 'USA'
|
||||
'country' => 'United States of America'
|
||||
]
|
||||
];
|
||||
|
||||
$stmt_user = $db->prepare("INSERT INTO users (full_name, email, password, role, university, graduation_year, bio, interests, country, skills, years_experience, previous_startup_exp, investment_appetite, verified, onboarding_completed)
|
||||
VALUES (:full_name, :email, :password, :role, :university, :graduation_year, :bio, :interests, :country, :skills, :years_experience, :previous_startup_exp, :investment_appetite, 1, 1)");
|
||||
$stmt_user = $db->prepare("INSERT INTO users (full_name, email, password, role, university, graduation_year, bio, interests, country, cv_url, skills, years_experience, previous_startup_exp, investment_appetite, verified, onboarding_completed)
|
||||
VALUES (:full_name, :email, :password, :role, :university, :graduation_year, :bio, :interests, :country, :cv_url, :skills, :years_experience, :previous_startup_exp, :investment_appetite, 1, 1)");
|
||||
|
||||
$stmt_startup = $db->prepare("INSERT INTO startups (
|
||||
name, description, founder_id, funding_target, status,
|
||||
@ -171,10 +174,19 @@ $stmt_startup = $db->prepare("INSERT INTO startups (
|
||||
:cofounder_equity_pct, :cofounder_equity_type, :cofounder_responsibilities, :desired_cofounder_experience, :cofounder_commitment, :other_partnership_details,
|
||||
:current_cash_balance, :burn_rate, :outstanding_debt, :accounts_receivable_payable,
|
||||
'assets/docs/financials/placeholder.pdf', 'assets/docs/financials/placeholder.pdf', 'assets/docs/financials/placeholder.pdf', 'assets/docs/financials/placeholder.pdf', 'assets/docs/financials/placeholder.pdf', 'assets/docs/financials/placeholder.pdf',
|
||||
:recommended_return_rate, :founder_return_rate");
|
||||
:recommended_return_rate, :founder_return_rate)");
|
||||
|
||||
$stmt_round = $db->prepare("INSERT INTO funding_rounds (startup_id, funding_goal, status) VALUES (:startup_id, :funding_goal, 'Active')");
|
||||
|
||||
// Create CV directory if not exists
|
||||
if (!is_dir('assets/docs/cvs/')) {
|
||||
mkdir('assets/docs/cvs/', 0777, true);
|
||||
}
|
||||
// Create placeholder CV if not exists
|
||||
if (!file_exists('assets/docs/cvs/placeholder.pdf')) {
|
||||
file_put_contents('assets/docs/cvs/placeholder.pdf', '%PDF-1.4 Placeholder CV');
|
||||
}
|
||||
|
||||
echo "Seeding founders...\n";
|
||||
foreach ($founders as $f) {
|
||||
$stmt_user->execute([
|
||||
@ -187,6 +199,7 @@ foreach ($founders as $f) {
|
||||
':bio' => $f['bio'],
|
||||
':interests' => $f['interests'],
|
||||
':country' => $f['country'],
|
||||
':cv_url' => $f['cv_url'] ?? NULL,
|
||||
':skills' => $f['skills'],
|
||||
':years_experience' => $f['years_experience'],
|
||||
':previous_startup_exp' => $f['previous_startup_exp'],
|
||||
@ -226,7 +239,7 @@ foreach ($founders as $f) {
|
||||
':startup_id' => $startup_id,
|
||||
':funding_goal' => $f['funding_target']
|
||||
]);
|
||||
echo "Created founder {$f['full_name']} and startup {$f['startup_name']}\n";
|
||||
echo "Created founder {" . $f['full_name'] . "} and startup {" . $f['startup_name'] . "}\n";
|
||||
}
|
||||
}
|
||||
|
||||
@ -242,13 +255,14 @@ foreach ($investors as $i) {
|
||||
':bio' => $i['bio'],
|
||||
':interests' => $i['interests'],
|
||||
':country' => $i['country'],
|
||||
':cv_url' => NULL,
|
||||
':skills' => NULL,
|
||||
':years_experience' => 0,
|
||||
':previous_startup_exp' => 0,
|
||||
':investment_appetite' => $i['investment_appetite']
|
||||
]);
|
||||
if ($db->lastInsertId()) {
|
||||
echo "Created investor {$i['full_name']}\n";
|
||||
echo "Created investor {" . $i['full_name'] . "}\n";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user