diff --git a/.hta_slug/my-leads.php b/.hta_slug/my-leads.php
index 168feb0..6e18614 100644
--- a/.hta_slug/my-leads.php
+++ b/.hta_slug/my-leads.php
@@ -219,11 +219,13 @@
$placeholderString = implode(',', array_fill(0, count($accessArray), '?'));
//first query to get the total number for pagination
- $parts = explode(',', $_SESSION["states"]);
+ $states=$_SESSION["states"];
+ if( strlen($_SESSION["states"]) <2 ) $states='no_states_access_selected';
+ $parts = explode(',', $states);
$quotedParts = array_map(function($item) { return "'" . $item . "'";}, $parts);
- $newStr = implode(',', $quotedParts);
+ $stateAcc = implode(',', $quotedParts);
- $sql= "SELECT COUNT(*) FROM cleads WHERE state IN ($newStr) OR user LIKE :user AND 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 ";
+ $sql= "SELECT COUNT(*) FROM cleads WHERE state IN ($stateAcc) OR user LIKE :user AND 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 ";
$stmt = $conn->prepare($sql);
$stmt->bindValue(':businessVertical', $businessVertical);
$stmt->bindValue(':searchTerm', "%".$searchTerm."%");
@@ -235,7 +237,7 @@
// second & final query to get the page_view data
- $sql = "SELECT * FROM cleads WHERE state IN ($newStr) OR user LIKE :user AND 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 state IN ($stateAcc) OR user LIKE :user AND 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, PDO::PARAM_STR );
$stmt->bindValue(':searchTerm', "%$searchTerm%"); // PDO::PARAM_STR is the default data type binding so is not needed
diff --git a/.hta_slug/profile.php b/.hta_slug/profile.php
new file mode 100644
index 0000000..6283acf
--- /dev/null
+++ b/.hta_slug/profile.php
@@ -0,0 +1,83 @@
+
+
+
Profile
+
+
+
if change profile information then login again
+
\ No newline at end of file
diff --git a/.htac_nav.php b/.htac_nav.php
index a1d76d6..ace1603 100644
--- a/.htac_nav.php
+++ b/.htac_nav.php
@@ -51,7 +51,7 @@
$lastInitial = substr($nameParts[count($nameParts) - 1], 0, 1);
echo '