if i run this model program without stored procedure calling means working fine.But if i calling stored procedure means throwing error.please help me i think the way of representing table name is wrong while calling stored procedure.
MODEL
<?php if (!defined('BASEPATH')) exit('No direct script access allowed');
class Members_model extends CI_Model
{
function select_members()
{
$query = $this->db->get('users'); //Table Name
$query = $this->db->query("CALL get_members()");// calling stored procedure
return $query->result_array();
}
}
?>
NOTE: Thrown Error A Database Error Occurred
Error Number: 2014
Commands out of sync; you can't run this command now
UPDATE `users` SET `username` = 'ThottiJaya', `password` = '28bf' WHERE `id` = 127
Filename: C:\xampp\htdocs\system\database\DB_driver.php
Line Number: 330