@Ghazascanner
_2019runbot
Ghazascanner File Manager
server :Linux phpmyadmin-ubuntu-m-2vcpu-16gb-blr1-01 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64
Current Path :
/
var
/
www
/
html
/
api
/
Path :
Upload File :
New :
File
Dir
/var/www/html/api/news.php
<?php $connect = mysqli_connect("localhost", "admin", "63144f7f62ffb6a71e9bbc8aa5e59a7e046b64d7ed9899f8", "yeni"); $sql = "select DISTINCT wp_c745ascy1l_posts.id, wp_c745ascy1l_posts.post_title,wp_c745ascy1l_posts.post_name, wp_c745ascy1l_posts.post_content, wp_c745ascy1l_posts.post_type, featured_image.guid as post_image, wp_c745ascy1l_posts.post_modified, wp_c745ascy1l_users.display_name from wp_c745ascy1l_posts inner join wp_c745ascy1l_postmeta on wp_c745ascy1l_posts.id = wp_c745ascy1l_postmeta.post_id and wp_c745ascy1l_postmeta.meta_key = '_thumbnail_id' inner join wp_c745ascy1l_posts as featured_image on featured_image.id = wp_c745ascy1l_postmeta.meta_value inner join wp_c745ascy1l_users on wp_c745ascy1l_users.id = wp_c745ascy1l_posts.post_author where wp_c745ascy1l_posts.post_parent = '25080' AND (wp_c745ascy1l_posts.post_status = 'publish') order by wp_c745ascy1l_posts.ID DESC"; $result = mysqli_query($connect, $sql); $json_array = array(); while($row = mysqli_fetch_assoc($result)) { $json_array[] = $row; } /*echo '<pre>'; print_r(json_encode($json_array)); echo '</pre>';*/ echo json_encode($json_array); ?>