$name = $_POST['name'];
$phone = $_POST['phone'];
$power = $_POST['power'];
$productivity = $_POST['productivity'];
$power = $_POST['power'];
$presure = $_POST['presure'];
$scope = $_POST['scope'];
$request = json_decode(file_get_contents('php://input'));
$name = $request->name;
SELECT t.* FROM test_table t
JOIN
( SELECT model, MIN(s) minVal
FROM test_table GROUP BY model
) t2
ON t.s = t2.minVal AND t.model = t2.model;
$('.card-img').click(function () {
$('.modal-bg').toggle(50);
$('.modal-bask-btn').click(function () {
$('.modal-bg').hide();
});
});
$('.card-img').click(function () {
$('.modal-bg').modal('show');
});
<div id="divText">MyText</div>
$('#divText').text('yourText');