Welcome Guest, Not a member yet? Register   Sign In
Getting undefined variables and calls to undefined functions.
#4

[eluser]chefsalat[/eluser]
Glad I could help! Started learning both jQuery and Codeigniter only a month ago as well, but once you get the principles, it goes fast.
As for your second problem, your treating the record in your view as array, but when you pass it from the model with query->result() it is passed as an object. So you have to address it as:

$record->priority;

If you prefer to work with arrays, you can pass them out with query->result_array(), but I suggest to stick with objects, as it's the more 'natural' CI way.


Messages In This Thread
Getting undefined variables and calls to undefined functions. - by El Forum - 02-02-2010, 10:41 AM



Theme © iAndrew 2016 - Forum software by © MyBB