Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions gen/controller.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@

$orderClause = "";
if($orderValue) {
$orderClause = " ORDER BY ". $columns[(int)$orderValue['column']]['data'] . " " . $orderValue['dir'];
$orderClause = " ORDER BY `". $columns[(int)$orderValue['column']]['data'] . "` " . $orderValue['dir'];
}

$table_columns = array(
Expand All @@ -63,7 +63,7 @@
$whereClause = $whereClause . " OR";
}

$whereClause = $whereClause . " " . $col . " LIKE '%". $searchValue ."%'";
$whereClause = $whereClause . " `" . $col . "` LIKE '%". $searchValue ."%'";

$i = $i + 1;
}
Expand Down