<?php
include "../../classes/db.class.php";

$db = new DBMain();

$res = $db->check_stock($_GET['stock_id'], $_GET['quantity']);

echo $res;