示例#1
0
function create_cost($arg1, $arg2, $arg3)
{
    require_once __DIR__ . "/../../moneyio.php";
    require_once __DIR__ . "/../../query.php";
    $prepare = db_connect();
    $query = $prepare->prepare(new_cost);
    $query->bind_param('ssi', $arg1, $arg2, $arg3);
    $query->execute();
    $value = get_balance($arg3, $arg3, $arg3);
    new_balance($value, $arg3);
    return $query;
    $prepare->close();
}
示例#2
0
function delete_ingress($arg1, $arg2)
{
    require_once __DIR__ . "/../../moneyio.php";
    require_once __DIR__ . "/../../query.php";
    $prepare = db_connect();
    $query = $prepare->prepare(delete_ingress);
    $query->bind_param('ii', $arg1, $arg2);
    $query->execute();
    //$get_wallet_id = get_ingress($arg2);
    $value = get_balance($arg2, $arg2, $arg2);
    // Solved issue, It taken $arg1 as ingress_id so, does not perform balance
    // Does not need because, It parse wallet_id auto via $_GET
    new_balance($value, $arg2);
    //$arg2 = wallet_id
    return $query;
    $prepare->close();
}
示例#3
0
function update_ingress($arg1, $arg2, $arg3, $arg4, $arg5)
{
    require_once __DIR__ . "/../../moneyio.php";
    require_once __DIR__ . "/../../query.php";
    $prepare = db_connect();
    $query = $prepare->prepare(update_ingress);
    $query->bind_param('sssii', $arg1, $arg2, $arg3, $arg4, $arg5);
    $query->execute();
    $value = get_balance($arg4, $arg4, $arg4);
    new_balance($value, $arg4);
    //$arg4 = wallet_id
    return $query;
    $prepare->close();
}
示例#4
0
function delete_cost($arg1, $arg2)
{
    require_once __DIR__ . "/../../moneyio.php";
    require_once __DIR__ . "/../../query.php";
    $prepare = db_connect();
    $query = $prepare->prepare(delete_cost);
    $query->bind_param('ii', $arg1, $arg2);
    $query->execute();
    //$get_wallet_id = get_cost($arg1); Does not needed
    //because wallet_id is request by $_GET at disable.php page
    $value = get_balance($arg2, $arg2, $arg2);
    new_balance($value, $arg2);
    //$arg2 = wallet_id
    return $query;
    $prepare->close();
}