s1
This commit is contained in:
@@ -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) VALUES (:name, :email, :phone, 'crm-portal', :note, :details, :origin, '5', :business_type, 'New')");
|
||||
$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->bindParam(':name', $data[0]);
|
||||
$stmt->bindParam(':email', $data[1]);
|
||||
$stmt->bindParam(':phone', $data[2]);
|
||||
@@ -26,6 +26,8 @@ try {
|
||||
$stmt->bindParam(':details', $data[5]);
|
||||
$stmt->bindParam(':origin', $data[6]);
|
||||
$stmt->bindParam(':business_type', $data[8]);
|
||||
$stmt->bindParam(':country', $data[13]);
|
||||
$stmt->bindParam(':state', $data[14]);
|
||||
|
||||
// Execute the SQL statement
|
||||
$stmt->execute();
|
||||
@@ -46,6 +48,8 @@ $conn = null;
|
||||
<p>TH(the first row) will not be added (Ignored), in every uploads the first row have to be there, as provided in the sample csv </p>
|
||||
<p><span style="font-weight: bold;">Origin:</span> Facebook-Ads, Google-Ads, Linkedin-Ads, Instagram, Messenger, Whatsapp, GMB, Linkedin, Inbound-Call, Outbound-Call, Others</p>
|
||||
<p><span style="font-weight: bold;">Verticals:</span> beanstalk, inhouse, teenybeans, iimtt, buzzapp, atheneum, teenybeans_curriculum</p>
|
||||
<p class="font-bold">Country list & code <a class="" style="color: #7875f4;" href="/assets/countries.csv" download="Country_List_&_Code.csv">Download</a></p>
|
||||
<p class="font-bold">State list & code <a class="" style="color: #7875f4;" href="/assets/states.csv" download="State_List_&_Code.csv">Download</a></p>
|
||||
</div>
|
||||
<div class="flex flex-col place-items-center mt-10 mb-[20%]">
|
||||
<div class="flex flex-col justify-center bg-[#F6F6F6] p-6 rounded-xl" style="min-width: 600px;">
|
||||
@@ -83,7 +87,7 @@ $conn = null;
|
||||
document.getElementById("spinner").style.display = "block";
|
||||
|
||||
setTimeout(() => {
|
||||
document.getElementById("uploadStatus").textContent = "Upload Complete";
|
||||
document.getElementById("uploadStatus").textContent = "Then: Click Upload Files";
|
||||
// Hide spinner after upload completion
|
||||
document.getElementById("spinner").style.display = "none";
|
||||
}, 2000); // Simulated upload time 2 seconds
|
||||
|
||||
Reference in New Issue
Block a user