Hello,
I have a table called materials
You have two columns “product_quantity” and “min_stock”
In the “min_stock” column, it contains the value to be notified when the product drops to the minimum level.
How do I list materials that are less than or equal to the min_stock number with a query?
$bildir = $db->prepare("SELECT * FROM materials");
$bildir->execute();
$stokbildir = $bildir->fetchAll();