s1
This commit is contained in:
@@ -18,7 +18,7 @@ try {
|
|||||||
foreach ($rows as $row) {
|
foreach ($rows as $row) {
|
||||||
$data = str_getcsv($row);
|
$data = str_getcsv($row);
|
||||||
// Prepare SQL statement
|
// 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(':name', $data[0]);
|
||||||
$stmt->bindParam(':email', $data[1]);
|
$stmt->bindParam(':email', $data[1]);
|
||||||
$stmt->bindParam(':phone', $data[2]);
|
$stmt->bindParam(':phone', $data[2]);
|
||||||
@@ -28,6 +28,7 @@ try {
|
|||||||
$stmt->bindParam(':business_type', $data[8]);
|
$stmt->bindParam(':business_type', $data[8]);
|
||||||
$stmt->bindParam(':country', $data[13]);
|
$stmt->bindParam(':country', $data[13]);
|
||||||
$stmt->bindParam(':state', $data[14]);
|
$stmt->bindParam(':state', $data[14]);
|
||||||
|
$stmt->bindParam(':lead_quality', $data[15]);
|
||||||
|
|
||||||
// Execute the SQL statement
|
// Execute the SQL statement
|
||||||
$stmt->execute();
|
$stmt->execute();
|
||||||
|
|||||||
@@ -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
|
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
|
||||||
|
|||||||
|
Reference in New Issue
Block a user