Welcome Guest, Not a member yet? Register   Sign In
Need help with passing multiple variables into controller
#1

[eluser]vincej[/eluser]
I'm doing something stupid. My controller function accepts the first variable $customerid but not the second variable $orderid. I have tested $orderid in an echo statement and it has a value.

What am I doing wrong - can you not send 2 variables through in the same statement ?

Code:
function order_history()  {
$customerid = ($_SESSION['userid']);
$orderid = ($_SESSION['order_num']);

$data['orders'] = $this->MOrders->read_order($customerid, $orderid);

$data['orders2'] = $this->MOrders->orders_by_orderid($customerid);
$data['main'] = 'order_history';
$data['title'] = "My site | Order History";
$data['navlist'] = $this->MCats->getCategoriesNav();
$this->load->vars($data);
$this->load->view('template');    
  ;}

Many thanks for any help you can provide !




Theme © iAndrew 2016 - Forum software by © MyBB