(fix): i fixed it !! filter workidge extravaganza headsplosion i just put in 3 zyns
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user