add mobile version pdf
This commit is contained in:
@@ -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;
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user