- Регистрация
- 13 Май 2008
- Сообщения
- 2.619
- Реакции
- 1.127
- Автор темы
- Модер.
- #41
прямая ссылка и не будет работать НИКОГДА!!!Yes I know there is inside in the templates works fine, but a direct link not working ! why?
Follow along with the video below to see how to install our site as a web app on your home screen.
Примечание: This feature may not be available in some browsers.
прямая ссылка и не будет работать НИКОГДА!!!Yes I know there is inside in the templates works fine, but a direct link not working ! why?
ok if direct link not working it is not problem and not very important , i want to send data from xfields (for examle this field $xfield = 'poster' ) to my android project with json ... if direct php not working how can i send information ??прямая ссылка и не будет работать НИКОГДА!!!
RSS либо создавай аналог RSS для трансляции материалов!ok if direct link not working it is not problem and not very important , i want to send data from xfields (for examle this field $xfield = 'poster' ) to my android project with json ... if direct php not working how can i send information ??
i don't like rss it is not good idea, i want to create serious apk softwareRSS либо создавай аналог RSS для трансляции материалов!
ну тогда только создавай удаленное подключение к базе данных, и уже пиши любое ПО для работы с БД удаленно... А дальше - уже на что фантазии хватитi don't like rss it is not good idea, i want to create serious apk software
(i want to work with database )
<?php
$response = array();
include ('engine/api/api.class.php');
$result = $db->query("SELECT post.id,
post.category, post.date as newsdate, post.title, post.xfields, post.alt_name
FROM " . PREFIX . "_post as post ORDER BY post.date ");
if (!$lastpost) {
$response["musics"] = array();
while ($row = $db->get_row($result)) {
$product = array();
$product["title"] = $row["title"];
$product["newxfield"] = $row["xfields"];
array_push($response["musics"], $product);
}
$responce["success"] = 1;
echo json_encode($response),"\n";
} else {
$response["success"] = 0;
$response["message"] = "No feed found";
header('Connect-Type: application/json');
echo json_encode(array($response)),"\n";
}
?>
but i want to receive such response{"musics":[{"title":"New Title 1","newxfield":"pol1|2015||pol2|firsttest||pol3|test1"},
{"title":"New Title 2","newxfield":"pol1|2016||pol2|newtesnew||pol3|test2"}]}
can you help me ???{"musics":[{"title":"New Title 1","newxfield":"firsttest"},
{"title":"New Title 2","newxfield":"newtesnew"}]}