Welcome Guest, Not a member yet? Register   Sign In
How to get value from controller with jquery
#2

(This post was last modified: 06-27-2017, 11:25 AM by InsiteFX.)

Try this:

PHP Code:
$this->output->set_content_type('application/json')
echo 
json_encode($res); 
You already have the stock in your array just assign the array stock key and value to the res array then json_encode it.
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply


Messages In This Thread
RE: How to get value from controller with jquery - by InsiteFX - 06-27-2017, 11:19 AM



Theme © iAndrew 2016 - Forum software by © MyBB