I\'m trying to insert data into tbl_stock and at the same time update tbl_product. I have so far written an ajax code below: