This commit is contained in:
Suvodip
2024-12-03 14:40:40 +05:30
parent b9ab2af22b
commit 37512c757f
2 changed files with 3 additions and 2 deletions

View File

@@ -18,7 +18,7 @@ try {
foreach ($rows as $row) {
$data = str_getcsv($row);
// Prepare SQL statement
$stmt = $conn->prepare("INSERT INTO cleads (name, email, phone, formname, note, details, origin, verticals, business_type, status, country, state) VALUES (:name, :email, :phone, 'crm-portal', :note, :details, :origin, '5', :business_type, 'New', :country, :state)");
$stmt = $conn->prepare("INSERT INTO cleads (name, email, phone, formname, note, details, origin, verticals, business_type, status, country, state, lead_quality) VALUES (:name, :email, :phone, 'crm-portal', :note, :details, :origin, '5', :business_type, 'New', :country, :state, :lead_quality)");
$stmt->bindParam(':name', $data[0]);
$stmt->bindParam(':email', $data[1]);
$stmt->bindParam(':phone', $data[2]);
@@ -28,6 +28,7 @@ try {
$stmt->bindParam(':business_type', $data[8]);
$stmt->bindParam(':country', $data[13]);
$stmt->bindParam(':state', $data[14]);
$stmt->bindParam(':lead_quality', $data[15]);
// Execute the SQL statement
$stmt->execute();