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"];