Welcome Guest, Not a member yet? Register   Sign In
[beginner] Calling function with submit button
#11

[eluser]rijobo[/eluser]
Hi Michel,

Thanks for helping out. I'm getting it a little bit. So I shouldn't assign at directly to 'id'.
But what should I do then? Can I assign it to a variable first?
#12

[eluser]rijobo[/eluser]
Could you, or someone else, give me an example? I've tried to assign a variable first, but that didn't work.
#13

[eluser]webnology[/eluser]
Code:
$query = $this->Products_model->getProductsWhere($product_id);
$row = $query->row();


$data = array(
'id'      => $row->id
'qty'     => 1,
'price'   => $row->price,
'name'    => $row->name
);




Theme © iAndrew 2016 - Forum software by © MyBB