show lead name in notifications

This commit is contained in:
Suvodip
2024-08-17 18:42:50 +05:30
parent e643b06cc1
commit 0b92a5797e
3 changed files with 5 additions and 3 deletions

View File

@@ -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%");