add author

This commit is contained in:
Andrey Kuvshinov
2020-05-24 21:40:42 +03:00
parent 11e6f2ce8f
commit 637ef12d6d
3 changed files with 18 additions and 6 deletions

View File

@@ -5,9 +5,11 @@ function api_pricehash($hash){
$pricesql = "
SELECT
`price_id`, `pricename`, `BeginDate`, `category_id`, `pages`, `pdf`, `html`
`price_id`, `pricename`, `BeginDate`, `category_id`, `pages`, `pdf`, `html`, `author`
FROM
`price`
`price`
LEFT JOIN
price_authors ON price.priceauthor_id = price_authors.author_id
WHERE
`pricehash` = '$hash'
LIMIT 1