- {
- $sql = "INSERT INTO ".TB_PREF."recurrent_invoices (description, order_no, debtor_no,
- group_no, days, monthly, begin, end, last_sent) VALUES (".db_escape($_POST['description']) . ", "
- .db_escape($_POST['order_no']).", ".db_escape($_POST['debtor_no']).", "
- .db_escape($_POST['group_no']).", ".input_num('days', 0).", ".input_num('monthly', 0).", '"
- .date2sql($_POST['begin'])."', '".date2sql($_POST['end'])."', '".date2sql(Add_Years($_POST['begin'], -5))."')";