I searched for information on the internet but I got a little confused, I have an input tag.
<div class="form-group">
<label>Stock Number</label><br />
<input type="text" class="form-control" id="StockNumber" name="StockNumber" value="" placeholder="e.g. 1810001" required />
</div>
I am interested in making a query to the database when entering information to the input, to know if that data already exists in the DB to send a message to the user as "Number of Stock already exists". I hope to receive your help