(fix): i fixed it !! filter workidge extravaganza headsplosion i just put in 3 zyns

This commit is contained in:
boris
2024-12-03 21:59:08 +00:00
parent f9d625e905
commit 574dcbb119
3 changed files with 34 additions and 18 deletions

View File

@@ -69,7 +69,6 @@ class FacilityDataSet {
// Default to title
// Note: I am very sorry, i am well aware this is horrible, im running out of time
$sortBy = 1;
var_dump($sortArray);
switch (array_search('desc', $sortArray) ?? array_search('asc', $sortArray)) {
case (0) :
$sortBy = 'ecoFacilityStatus.statusComment';
@@ -217,6 +216,7 @@ class FacilityDataSet {
// Bind other filters
for ($i = 1; $i <= 8; $i++) { // Assuming 8 other filters
$value = !empty($filterArray[$i]) ? "%" . $filterArray[$i] . "%" : "%";
print_r($i . " = " . $value . "|");
$stmt->bindValue($bindIndex++, $value, \PDO::PARAM_STR);
}
return $stmt;