D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
home
/
realadss
/
kavyaeventz.in
/
admin
/
ajax
/
Filename :
getsubcat.php
back
Copy
<?php include"../connection.php"; $category = $_POST['category']; $sql = "select * from products where catagory = '$category'"; $query = mysqli_query($conn, $sql); // $data = mysqli_fetch_array($query); $returnVAR = array(); while ($row = mysqli_fetch_array($query)) { $returnVAR[] = $row; } echo json_encode($returnVAR); ?>