aa
This commit is contained in:
@@ -298,6 +298,7 @@ class ArticleController extends Controller
|
|||||||
|
|
||||||
} catch (\Exception $e) {
|
} catch (\Exception $e) {
|
||||||
// Registrazione dell'errore
|
// Registrazione dell'errore
|
||||||
|
echo "Errore: " . $e->getMessage();
|
||||||
return response()->json(['error' => 'Si è verificato un errore durante il recupero dei dati: ' . $e->getMessage()], 500);
|
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]);
|
// ritorna response()->json(['data' => $articoliVenduti]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (false) {
|
||||||
echo '<table border="1">';
|
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>';
|
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) {
|
foreach ($articoliVenduti as $articolo) {
|
||||||
@@ -594,6 +596,7 @@ class ArticleController extends Controller
|
|||||||
echo '</tr>';
|
echo '</tr>';
|
||||||
}
|
}
|
||||||
echo '</table>';
|
echo '</table>';
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
if ($articoliVenduti->isEmpty()) {
|
if ($articoliVenduti->isEmpty()) {
|
||||||
|
|||||||
Reference in New Issue
Block a user