Something went wrong. Try again.
Open source inventory management system with php and mysql Invoice generation and easy to download invoice in PDF format Lightweight and ea…
Something went wrong. Try again.
1234567891011121314151617181920212223242526<?php
require_once 'core.php';
$valid['success'] = array('success' => false, 'messages' => array());
$brandId = $_POST['brandId'];
if($brandId) {
$sql = "UPDATE brands SET brand_status = 2 WHERE brand_id = {$brandId}";
if($connect->query($sql) === TRUE) { $valid['success'] = true; $valid['messages'] = "Successfully Removed"; } else { $valid['success'] = false; $valid['messages'] = "Error while remove the brand"; } $connect->close();
echo json_encode($valid); } // /if $_POST