Undefined valuable |
(05-09-2017, 01:07 AM)neuron Wrote: in get_school method you are returning object of row objects, you need to fetch only one row. hey any other suggestion, am really stack
send us your settings table picture.
you can connect to your db using mysql workbench connect to your db and then send us view of your settings table
Are you new to CodeIgniter? I can understand not knowing where things go.
What Insite posted has instructions. You place that code into a new helper file (or existing if you want). You have to load that helper or add it to the autoloader. Then you call it like you did with var_dump except using varDebug. (05-11-2017, 04:28 AM)kayinja.denis Wrote:(05-10-2017, 12:06 PM)InsiteFX Wrote: Here is a nice method to format var_dump values.bro i don't understand how to use your function... You just pass the array into it just like var_debug, place the method into a CodeIgniter helper file and autoload it, then just call it like any other method varDebug(your_array or query); What did you Try? What did you Get? What did you Expect?
Joined CodeIgniter Community 2009. ( Skype: insitfx )
Well guys thanks I got it to work
changed this PHP Code: public function get_school() to PHP Code: function get_school($id) { |
Welcome Guest, Not a member yet? Register Sign In |