I needed help to verify that the quantity chosen by the customer is different from the existing stock
Code that I'm using
$con=mysqli_connect('localhost', 'root', '', 'pap') or die (mysqli_error ());
$strSQL1 = "SELECT 'QuantidadeProduto' FROM 'produtos' WHERE 'Id_Produto'=1";
$rs1 = mysqli_query($con,$strSQL1);
if(isset($_POST['verifica1'])){
$quantiade = $_POST['quantidade'];
}
if($quantiade>$rs1){
echo ("inferiror");
}
elseif ($quantiade<$rs1){
echo("Falta stock");
}
and is giving me the following errors
Warning: Use of undefined constant amount - assumed 'amount' (this will throw an error in a future version of PHP) in C: \ xampp \ htdocs \ Site \ product_page.php on line 635
Warning: Use of undefined constant quantity - assumed 'amount' (this will throw an error in a future version of PHP) in C: \ xampp \ htdocs \ Site \ product_page.php on line 638