git-svn-id: https://msi/svn/firstRepo/Service/branches/Manut_2.2.3@74 0f545695-f87b-41b6-9a03-7f16563b5454

This commit is contained in:
2016-03-03 22:21:19 +00:00
parent b3bbd9d1f6
commit d20b6a6758
+1
View File
@@ -124,6 +124,7 @@ $app->get('/ricette/search/:numItems/:startItem(/:categoryId(/:difficolta/:autor
$query = "select * from (select ricette.ID as ricetta_id, categorie.name AS categoria_name, titolo, autore, valutazione, difficolta, " . $query = "select * from (select ricette.ID as ricetta_id, categorie.name AS categoria_name, titolo, autore, valutazione, difficolta, " .
"(select id from immagini where immagini.id_ricette = ricette.id and bCover = 1) as firstImage" . "(select id from immagini where immagini.id_ricette = ricette.id and bCover = 1) as firstImage" .
$queryBase . " LIMIT " . $numItems * $startItem . " , " . $numItems . ") as TMP"; $queryBase . " LIMIT " . $numItems * $startItem . " , " . $numItems . ") as TMP";
$retObj2 = $mysqlconnetion->queryToObject($query); $retObj2 = $mysqlconnetion->queryToObject($query);
$query = "select COUNT(*) as TotalRecords" . $queryBase; $query = "select COUNT(*) as TotalRecords" . $queryBase;