Example #1
0
<?php

$d = new Debits();
if (isset($_POST['btn_plati'])) {
    $debit_id = Debits::get($_POST['btn_plati']);
    $d->debit_id = $_POST['btn_plati'];
    $d->method_pay = $_POST['method_pay'];
    $d->debit_status = "0";
    $d->save();
    echo "<div class='alert alert-success'>\n             <i><strong>Uspesno!</strong> Naplatili ste dugovanje!</i> <a href='home.php?page=6'>Vratite se na dugovanja</a>\n          </div>";
} else {
    echo "<div class='alert alert-danger'>\n                <i><strong>Greska! </strong> Dosolo je do neocekivane greske</i> <a href='home.php?page=6'>Pokusajte ponovo</a>\n          </div>";
}
//print_r($debit_id);
//header("location: home.php?page=6");