master
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();

View File

@ -1,2 +1,2 @@
name,email,phone,subject,message,details,origin,verticals,business_type,note,user,coupon_code,coupon,country,state
name,email,phone,subject,message,details,origin,verticals,business_type,note,user,coupon_code,coupon,country,state,lead_quality
Sample Name,sample@email.com,0,Sample Subject,Sample Message,Sample Details,Sample Origin ,Sample verticals,Sample business_type,Sample Note,user@siliconpin.com,Sample coupon_code,Sample coupon ,IN,WB

1 name name,email,phone,subject,message,details,origin,verticals,business_type,note,user,coupon_code,coupon,country,state,lead_quality email phone subject message details origin verticals business_type note user coupon_code coupon country state
2 Sample Name Sample Name,sample@email.com,0,Sample Subject,Sample Message,Sample Details,Sample Origin ,Sample verticals,Sample business_type,Sample Note,user@siliconpin.com,Sample coupon_code,Sample coupon ,IN,WB sample@email.com 0 Sample Subject Sample Message Sample Details Sample Origin Sample verticals Sample business_type Sample Note user@siliconpin.com Sample coupon_code Sample coupon IN WB