diff --git a/app/CustomFuncPao.php b/app/CustomFuncPao.php
index 467adc9d..278c8a5d 100644
--- a/app/CustomFuncPao.php
+++ b/app/CustomFuncPao.php
@@ -523,7 +523,8 @@ function showOrdini()
return $str;
}
-function getStructTable($tableName) {
+function getStructTable($tableName)
+{
$str = '';
@@ -531,13 +532,41 @@ function getStructTable($tableName) {
$str .= '
Tabella ' . $tableName . ' :
';
+ $str .= '
';
+
// Stampa la struttura della tabella
foreach ($columns as $column) {
- $str .= $column . "
";
+ $str .= ' ' . $column . "
";
+ }
+
+ $str .= '';
+
+ return $str;
+}
+
+function getAllTables()
+{
+ $tables = DB::select('SHOW TABLES');
+
+ $tableNames = array_map('current', $tables);
+
+ return $tableNames;
+}
+
+
+function getAllTablesStr()
+{
+ // Utilizzo della funzione per ottenere la lista delle tabelle
+ $tables = getAllTables();
+
+ $str = "TABELLE: