More Select * Queries convert

This commit is contained in:
johnnyq
2026-08-06 13:57:46 -04:00
parent 108781db5b
commit f8899e592f
9 changed files with 22 additions and 18 deletions

View File

@@ -734,7 +734,7 @@ if (isset($_POST['export_quotes'])) {
$sql = mysqli_query(
$mysqli,
"SELECT * FROM quotes
"SELECT quote_number, quote_prefix FROM quotes
LEFT JOIN clients ON quote_client_id = client_id
LEFT JOIN categories ON quote_category_id = category_id
WHERE (CONCAT(quote_prefix,quote_number) LIKE '%$q%' OR quote_scope LIKE '%$q%' OR category_name LIKE '%$q%' OR quote_status LIKE '%$q%' OR quote_amount LIKE '%$q%' OR client_name LIKE '%$q%')