This commit is contained in:
paoloar77
2025-04-15 12:56:06 +02:00
parent 1a99d5b09e
commit 32883ec09d

View File

@@ -298,6 +298,7 @@ class ArticleController extends Controller
} catch (\Exception $e) {
// Registrazione dell'errore
echo "Errore: " . $e->getMessage();
return response()->json(['error' => 'Si è verificato un errore durante il recupero dei dati: ' . $e->getMessage()], 500);
}
@@ -570,6 +571,7 @@ class ArticleController extends Controller
// ritorna response()->json(['data' => $articoliVenduti]);
}
if (false) {
echo '<table border="1">';
echo '<tr><th>IdArticolo</th><th>Titolo</th><th>DataPubblicazione</th><th>ISBN</th><th>IdCollana</th><th>DescrizioneCollana</th><th>DescrArgomento</th><th>ListaArgomenti</th><th>Pagine</th><th>IdTipoFormato</th><th>Misure</th><th>totVen</th><th>totFat</th><th>rank3M</th><th>fatrank3M</th><th>fatrank6M</th><th>rank6M</th></tr>';
foreach ($articoliVenduti as $articolo) {
@@ -594,6 +596,7 @@ class ArticleController extends Controller
echo '</tr>';
}
echo '</table>';
}
if ($articoliVenduti->isEmpty()) {