This commit is contained in:
Zhuk Viatcheslav
2020-11-20 12:56:22 +03:00
parent f1a96eb4de
commit cfd649b1bb

View File

@@ -324,11 +324,11 @@ function readtext_kuri($hash, $page = 1, $promo = 'full'){
$full_ver_url = SITE."read/$hash/$page/$promo/pdf"; $full_ver_url = SITE."read/$hash/$page/$promo/pdf";
$content = apipage_kuri($price['price_id'], $page); $content = apipage_kuri($price['price_id'], $page);
//$price = db_get("SELECT `authorname` FROM `authors` WHERE `author_id` = $content['author_id']");
foreach ($content as $news) { foreach ($content as $news) {
$author_id = $news['author_id']; $author_id = $news['author_id'];
} }
//echo $author_id; $authorname = db_get("SELECT `authorname` FROM `authors` WHERE `author_id` = $author_id");
echo $authorname;
//print_r($content); //print_r($content);