无法从opencart中的myorders表中检索order_id

时间:2017-11-08 05:45:53

标签: php mysql sqlite

我要从php中的order_id表中检索ordernewordernew的结构是:

  1. customer_id
  2. order_id
  3. 我的customer_id值为1,order_id为5,我使用

    public function insert_new1() {
        $order_query1 = $this->db->query("SELECT order_id FROM `" . "oc_ordernew` WHERE customer_id = '" . (int)$this->customer->getId() . "'");
        return  $order_query1;
    }
    

    我的查询已执行,但未返回任何值。

    任何帮助都会很棒。

0 个答案:

没有答案