@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/emlakcilist.php
<!DOCTYPE html> <html> <head> <title>Webslesson Tutorial | Convert Data from Mysql to JSON Format using PHP</title> </head> <body> <?php $connect = mysqli_connect("localhost", "admin", "63144f7f62ffb6a71e9bbc8aa5e59a7e046b64d7ed9899f8", "yeni"); $sql = "SELECT SQL_CALC_FOUND_ROWS wp_c745ascy1l_posts.* FROM wp_c745ascy1l_posts WHERE 1=1 AND wp_c745ascy1l_posts.post_type = 'estate_agent' AND (wp_c745ascy1l_posts.post_status = 'publish' OR wp_c745ascy1l_posts.post_status = 'expired' OR wp_c745ascy1l_posts.post_status = 'private') ORDER BY wp_c745ascy1l_posts.post_date 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); ?> </body> </html>