• File: fetchSelectedBrand.php
  • Full Path: /home/dealkatnwc/www/GARAGE/php_action/fetchSelectedBrand.php
  • Date Modified: 12/11/2023 3:34 PM
  • File size: 326 bytes
  • MIME-type: text/x-php
  • Charset: utf-8
<?php 	

require_once 'core.php';

$brandId = $_POST['brandId'];

$sql = "SELECT brand_id, brand_name, brand_active, brand_status FROM brands WHERE brand_id = $brandId";
$result = $connect->query($sql);

if($result->num_rows > 0) { 
 $row = $result->fetch_array();
} // if num_rows

$connect->close();

echo json_encode($row);