<form class="cart" name="cart" method="POST" action="#">
<div class="form-group">
<div class="input-group">
<input type="hidden" name="productId" id="productId" class="id" value="530">
<input type="hidden" class="form-control" name="productName" id="productName" value="КИПД66В-К">
<input type="hidden" class="form-control" name="productPrice" id="productPrice" value="5">
<input type="hidden" class="form-control" name="userId" id="userId" value="1">
<input class="quantity form-control text-center" type="number" name="qty" id="qty" value="1">
<span class="input-group-append">
<button class="btn btn-success" type="submit">В корзину</button>
</span>
</div>
</div>
</form>
<input type="hidden" name="productId" id="productId" class="id" value="530">
SELECT concat(brand_product, ' ', type_product) as name FROM `products`;
["coupons"]=>
array(1) {
["coupon"]=>
array(16) {
["coupons"]=>
array(1) {
["coupon"]=>
array(2) {
[0]=>
array(16) {
if (count($data['coupons']['coupon']) > 2) {
echo 'больше 2 купона';
} else {
echo 'меньше 1 купона';
}