git-svn-id: https://msi/svn/firstRepo/Service/branches/Manut_2.2.3@74 0f545695-f87b-41b6-9a03-7f16563b5454
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user