Communities for your favorite technologies. Explore all Collectives
Stack Overflow for Teams is now called Stack Internal. Bring the best of human thought and AI automation together at your work.
Bring the best of human thought and AI automation together at your work. Learn more
Find centralized, trusted content and collaborate around the technologies you use most.
Stack Internal
Knowledge at work
Bring the best of human thought and AI automation together at your work.
I have a MySQL procedure GET_JOB_ID, output parameter is job_id. Then I call it from codeigniter
GET_JOB_ID
job_id
codeigniter
$data = $this->db->query("CALL GET_JOB_ID()");
Then how can I get the output parameter job_id from codeigniter?
I got the answer.
$job_id = 0; $this->load->database(); $job_data = $this->db->query("CALL GET_JOB_ID(@job_id)"); $out_param_query = $this->db->query('select @job_id as job_id;'); foreach ($out_param_query->result() as $key) { $job_id = $key->job_id; } $this->db->close();
Add a comment
Required, but never shown
By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.
Start asking to get answers
Find the answer to your question by asking.
Explore related questions
See similar questions with these tags.