diff --git a/.hta_slug/edit-lead.php b/.hta_slug/edit-lead.php index d208319..7d0d917 100644 --- a/.hta_slug/edit-lead.php +++ b/.hta_slug/edit-lead.php @@ -489,12 +489,13 @@ try { $conn = new PDO("mysql:host=$mariaServer;dbname=$mariaDb", $mariaUser, $mariaPass); $conn->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); - $stmt = $conn->prepare("INSERT INTO appointment (appt_date, email, name, leadid, comment) VALUES (:appt_date, :email, :name, :leadid, :comment)"); + $stmt = $conn->prepare("INSERT INTO appointment (appt_date, email, name, leadid, comment, lead_name) VALUES (:appt_date, :email, :name, :leadid, :comment, :lead_name)"); $stmt->bindParam(':appt_date', $_POST['appt_date']); $stmt->bindParam(':email', $_SESSION['email']); $stmt->bindParam(':name', $_SESSION['name']); $stmt->bindParam(':leadid', $_GET['id']); $stmt->bindParam(':comment', $_POST['comment']); + $stmt->bindParam(':lead_name', $_POST['lead_name']); $stmt->execute(); $saved_message = "New Appointment save successfully"; } catch(PDOException $e) { @@ -694,6 +695,7 @@ +
diff --git a/.hta_slug/leads.php b/.hta_slug/leads.php index 7ee20d7..a81ec39 100644 --- a/.hta_slug/leads.php +++ b/.hta_slug/leads.php @@ -254,7 +254,7 @@ // second & final query to get the page_view data - $sql = "SELECT * FROM cleads WHERE business_type LIKE :businessVertical AND (name LIKE :searchTerm OR phone LIKE :searchTerm OR id LIKE :searchTerm OR email LIKE :searchTerm ) AND time BETWEEN :start_date AND :end_date ORDER BY id DESC LIMIT :limit OFFSET :offset"; + $sql = "SELECT * FROM cleads WHERE business_type LIKE :businessVertical AND (name LIKE :searchTerm OR phone LIKE :searchTerm OR id LIKE :searchTerm OR email LIKE :searchTerm ) AND time BETWEEN :start_date AND :end_date ORDER BY id DESC LIMIT :limit OFFSET :offset"; $stmt = $conn->prepare($sql); $stmt->bindValue(':businessVertical', "%".$businessVertical."%"); $stmt->bindValue(':searchTerm', "%$searchTerm%"); diff --git a/.hta_slug/notifications/_home.php b/.hta_slug/notifications/_home.php index d733a40..1b6e6aa 100644 --- a/.hta_slug/notifications/_home.php +++ b/.hta_slug/notifications/_home.php @@ -53,7 +53,7 @@