function deleteDailySupply($supcode, $date) { $dbmain = new DBmain(); $condition = "supplier_code='" . $supcode . "' AND date='" . $date . "'"; $boolres = $dbmain->delete("daily_supply", $condition); if ($boolres == true) { return true; } else { return false; } }
function deleteTodaySupply($supcode) { $dbmain = new DBmain(); $condition = "supplier_code='" . $supcode . "'"; $boolres = $dbmain->delete("today_supply", $condition); if ($boolres == true) { return true; } else { return false; } }