hi all,
i have a bit of a problem, wondering if anyone can lend a hand here,
Ive created an e-commerce site and if a user buys something it updates the stock field in the database that works fine but if the stock is less than what the user wants to purchase i want it to display an error message saying something like "Sorry item not in stock"
I know im going to need some sort of IF statement but not sure how to retrieve the information from the database and then display the message.