Add Archive to Contacts hiding archived dropdowns in client area

This commit is contained in:
johnny@pittpc.com
2021-02-07 14:44:00 -05:00
parent 9b0d4d4e7e
commit d24df2f2db
7 changed files with 30 additions and 11 deletions

View File

@@ -64,7 +64,7 @@
<option value="">- Contact -</option>
<?php
$sql_contacts = mysqli_query($mysqli,"SELECT * FROM contacts WHERE client_id = $client_id ORDER BY contact_name ASC");
$sql_contacts = mysqli_query($mysqli,"SELECT * FROM contacts WHERE (contact_archived_at > '$location_created_at' OR contact_archived_at IS NULL) AND client_id = $client_id ORDER BY contact_name ASC");
while($row = mysqli_fetch_array($sql_contacts)){
$contact_id_select = $row['contact_id'];
$contact_name_select = $row['contact_name'];