Skip to content

Commit

Permalink
order by date
Browse files Browse the repository at this point in the history
  • Loading branch information
pavlosb committed May 27, 2024
1 parent 5ee1420 commit 9179c1a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion application/models/Itindata_model.php
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ public function get_inspectionsfull($where=null)
$q = "Select k.*, v.*, c.*, u.first_name, u.last_name from inspections_tbl as k
LEFT JOIN vehicles_tbl AS v ON k.vehicle_inspection = v.id_vhcl
LEFT JOIN clients_tbl AS c ON k.client_inspection = c.id_client
LEFT JOIN users AS u ON k.inspector_inspection = u.id";
LEFT JOIN users AS u ON k.inspector_inspection = u.id ORDER BY k.date_inspection DESC";

if (isset($where))
{
Expand Down

0 comments on commit 9179c1a

Please sign in to comment.