From e31b7b6319762d2945dd8ae343a9d0d4b928ece6 Mon Sep 17 00:00:00 2001 From: Malte Schulze Hobeling Date: Wed, 11 Jan 2023 14:41:30 +0100 Subject: [PATCH] add: select --- BancaDati/BancaDati.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/BancaDati/BancaDati.php b/BancaDati/BancaDati.php index 73c056e..50ab02b 100644 --- a/BancaDati/BancaDati.php +++ b/BancaDati/BancaDati.php @@ -111,7 +111,7 @@ class BancaDati { } $sql = "SELECT * FROM ".$table." WHERE ".$where; if(isset($order["by"])){ - $sql .= " ORDER BY ".$order; + $sql .= " ORDER BY ".$order["by"]; } if(isset($order["order"])){ $sql .= $order["order"];