dongmeirang4679 2013-07-07 08:03
浏览 31

将变量传递给函数不起作用

I have a problem when I try to pass a variable to a function in Codeigniter. The function i have to pass some variables from is this one:

function payment_accepted()
        {
            $this->db->where('id', $this->input->get('orderid'));
            $this->db->limit(1);
            $this->db->update('orders', array('payment_status'=>TRUE, 'transaction_id'=>$this->input->get('txnid'), 'approved'=>TRUE));
            $query = $this->db->get('orders');
            $info = $query->result_array();

            $this->order_success($info[0], array('paymenttype' => $this->input->get('paymenttype'), 'cardno' => $this->input->get('cardno')));
        }

The problem is that the first paramater doesn't work and therefore the order_success function can't send the mail as it should do:

$this->application->email($info['email'], 'Ordre bekræftelse', $message);

I've checked, and the problem is with the $info variable, I just don't know what.

I hope you can help me!

  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥15 如何在node.js中或者java中给wav格式的音频编码成sil格式呢
    • ¥15 不小心不正规的开发公司导致不给我们y码,
    • ¥15 我的代码无法在vc++中运行呀,错误很多
    • ¥50 求一个win系统下运行的可自动抓取arm64架构deb安装包和其依赖包的软件。
    • ¥60 fail to initialize keyboard hotkeys through kernel.0000000000
    • ¥30 ppOCRLabel导出识别结果失败
    • ¥15 Centos7 / PETGEM
    • ¥15 csmar数据进行spss描述性统计分析
    • ¥15 各位请问平行检验趋势图这样要怎么调整?说标准差差异太大了
    • ¥15 delphi webbrowser组件网页下拉菜单自动选择问题