Skip to content

Commit

Permalink
Added order by
Browse files Browse the repository at this point in the history
  • Loading branch information
wbruno committed May 6, 2015
1 parent 79f46fa commit 4ad1896
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions checkboxes-opcionais/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@
$sql .= " LEFT JOIN `vehicle_optional` ";
$sql .= " ON `vehicle_optional`.`id_optional` = `optional`.`id` ";
$sql .= " AND `vehicle_optional`.`id_vehicle` = {$id} ";
$sql .= " ORDER BY `optional`.`id` ";

$query = $mysqli->query($sql)or die($mysqli->error);
while($row = $query->fetch_object()) {
Expand Down

0 comments on commit 4ad1896

Please sign in to comment.