我已经有这个代码:
<?php
if ($quantity == 0){
$prd_name = " ";
$colors = " ";
$sizes = " ";
$quantity = " ";
$price = " ";
$TIP = " ";
$TPA = " ";
$cost = " ";
$amount = " ";
$query ="DELETE FROM orders WHERE quantity='0'";
}
?>
但它仍然会创建一个表格行条目。
我要做的是当输入的数量为 0 时,表格行将被删除。请多多包涵,因为我是 php 和 mySQL 编码的新手。