This commit is contained in:
Paolo A
2024-08-13 13:50:19 +00:00
6 changed files with 2116 additions and 40 deletions

View File

@@ -1679,26 +1679,6 @@ Route::get('/autori_test', function () {
}
});
function getvalstr($mystr, $value, $separato = false)
{
$my = '';
if ($mystr) {
$my = " " . $mystr . ": " . $value;
} else {
$my = $value;
if (!$separato) {
$my = " " . $value;
}
}
if ($separato) {
$my = '[' . $my . '] ';
}
return $my;
}
Route::get('/test7/{name}', function ($name) {
$articles = Article::join(DB::raw('(SELECT IdArticolo, MAX(DataOra) AS data FROM T_WEB_Articoli WHERE Titolo LIKE \'%' . $name . '%\' GROUP BY IdArticolo) b'), function ($join) {
$join->on('T_WEB_Articoli.IdArticolo', '=', 'b.IdArticolo')