Welcome Guest, Not a member yet? Register   Sign In
The concept of models
#11

[eluser]blender[/eluser]
In your model you are returning $query->result() and then in your view your are using foreach on $query->result() again. Try just returning $query in the model.
#12

[eluser]Code Arachn!d[/eluser]
If you look at the code i posted that should work - if not - do you have access to your php logs so you can look at the error code?
#13

[eluser]RobbieL[/eluser]
I'm currently running everything on Localhost, so I imagine I do have access to the logs. Where abouts will I find them?
#14

[eluser]RobbieL[/eluser]
Managed to grab a free moment to give this another go, and was reading back through this thread and noticed I had completely missed Blender's post. Removing the $query->result from the view, and just putting $query is worked a treat!

Ta for the help. Really appreciated.
#15

[eluser]Edemilson Lima[/eluser]
Code:
so I imagine I do have access to the logs. Where abouts will I find them?

In "/system/logs" folder. Smile

Since your model returns an array with all returned rows, to know how much rows your query returned, use the function count($query).




Theme © iAndrew 2016 - Forum software by © MyBB