Code: Select all
$cust1= $this->db->query("SELECT * FROM oc_customer WHERE customer_id='1'");
$cust2= $this->db->query("SELECT * FROM oc_customer WHERE customer_id='2'");
$c= (object)array_merge((array) $cust1->rows, (array) $cust2->rows);
Code: Select all
$cust1= $this->db->query("SELECT * FROM oc_customer WHERE customer_id='1'");
$cust2= $this->db->query("SELECT * FROM oc_customer WHERE customer_id='2'");
$c= (object)array_merge((array) $cust1->rows, (array) $cust2->rows);
Well I'm not surprised if your programming syntax is as bad as your grammar!
UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk
What are you actually trying to do? If it is what I think it is how about :sicilian_najdorf wrote: ↑Wed Jul 22, 2020 11:37 amthis don't work.Code: Select all
$cust1= $this->db->query("SELECT * FROM oc_customer WHERE customer_id='1'"); $cust2= $this->db->query("SELECT * FROM oc_customer WHERE customer_id='2'"); $c= (object)array_merge((array) $cust1->rows, (array) $cust2->rows);
cue4cheap not cheap quality
Users browsing this forum: No registered users and 8 guests