From 8e28e5008c3ab4983f3a4fbefe154f7e8cd78cd3 Mon Sep 17 00:00:00 2001 From: Goeran Heinemann Date: Tue, 31 Mar 2020 11:17:53 +0200 Subject: [PATCH] =?UTF-8?q?sql=20reihenfolge=20der=20=C3=BCbungen=20gerfix?= =?UTF-8?q?t?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- html/api/workout.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/html/api/workout.php b/html/api/workout.php index 8ed644d..a4bf164 100644 --- a/html/api/workout.php +++ b/html/api/workout.php @@ -13,7 +13,7 @@ if (isset($_GET['token'])){ $userID = $userData[0]['user']; if(isset($_GET['workout'])){ - $sql = "SELECT exercises_in_workout.id, name, description, amount, type, unit FROM exercises_in_workout inner join workout_types on workout_types.id=exercises_in_workout.workout_type inner JOIN workout_type_measurements on workout_type_measurements.id=workout_types.measurement where exercises_in_workout.workout_routine=?"; + $sql = "SELECT exercises_in_workout.id, name, description, amount, type, unit FROM exercises_in_workout inner join workout_types on workout_types.id=exercises_in_workout.workout_type inner JOIN workout_type_measurements on workout_type_measurements.id=workout_types.measurement where exercises_in_workout.workout_routine=? order by exercises_in_workout.id asc "; $stmt = $pdo->prepare($sql); $stmt->bindParam(1, $_GET['workout']); if ($stmt->execute()){ -- 2.43.0