add mobile version pdf

This commit is contained in:
Andrey Kuvshinov
2020-05-22 13:21:37 +03:00
parent d0d6af8de6
commit 2dee8b96b6
4 changed files with 72 additions and 3 deletions

View File

@@ -16,7 +16,7 @@ function api_pricehash($hash){
$price = db_get($pricesql);
if (!isset($price['price_id']))
return false;
return ['error' => 'not found hash'];
else
return $price;
@@ -24,10 +24,23 @@ function api_pricehash($hash){
}
function api_pagenews($number_id, $page){
function apipage_kuri($price_id, $page = 1){
$newsql = "
SELECT
news_id, title, text, img
FROM
`news`
WHERE
`price_id` = '$price_id'
AND
`page` = '$page'
";
$news = db_get($newsql);
return $news;
}