Click here to Skip to main content
15,884,425 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Dear Friends,

I have stored procedure name 'chef_allproducts'. It shows an error:

Can't reopen table: 'ci' call chef_allProducts()

What I have tried:

i have tried this in codeigniter below:

Modal:
$query = $this->db->query("CALL chef_allProducts()");
return $query->result();

Controller:
$data['field'] = $this->Excelex->get_field();
$this->load->view('excel', $data);

View:
foreach($field as $f):
echo $f;
endforeach;
Posted
Updated 4-Feb-16 19:25pm
v2
Comments
Vivek.anand34 6-Feb-16 1:49am    
I have solved this problem... Actually, I created same temp table in code and database. I deleted temp table in code, now its working. that is a problem

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900